derivative firstly x then y
3 次查看(过去 30 天)
显示 更早的评论
f(x,y)=(x^28)/(y^2+x^2)+(sqrt(exp(x*y)+abs(-4*y)) take derivative firstly x and the y for f section.
0 个评论
采纳的回答
Ameer Hamza
2020-5-8
编辑:Ameer Hamza
2020-5-8
Using symbolic toolbox, you can do it like this
syms x y
f = (x^28)/(y^2+x^2)+(sqrt(exp(x*y)+abs(-4*y)));
fx = diff(f, x); % derivative w.r.t. x
fy = diff(f, y); % derivative w.r.t. y
Output from live script
disp(f)
disp(fx)
disp(fy)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dynamic System Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!