how to find total derivative?
显示 更早的评论
i want to find total derivative in MATLAB eq== cos(x) = sin(y)*x the solution should be like this -sin(x) = x*cos(y)*dy/dx + sin(y)
采纳的回答
更多回答(1 个)
zeeshan shafiq
2020-2-2
0 个投票
>> syms x y
>> f=inline('sin(x)+2*cos(y)','x',' y')
f =
Inline function:
f(x, y) = sin(x)+2*cos(y)
>> derivative=inline(diff(f(x,y),x,y),'x','y')
derivative =
Inline function:
derivative(x,y) = 0.0
>> derivative(2,5)
ans =
0
>>
类别
在 帮助中心 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!