How to do partial derivates?

So i have this function x*sin(x*y)
and I'd need to do a partial derivate like this with it: d^2/dxdy
How do I write it?

回答 (1 件)

Torsten
Torsten 2022 年 11 月 7 日
編集済み: Torsten 2022 年 11 月 7 日

0 投票

syms x y
f = x*sin(x*y);
dxy = diff(diff(f,x),y)
dxy = 
dyx = diff(diff(f,y),x)
dyx = 
By the way: it's called "partial derivatives", not "partial derivates".

カテゴリ

製品

質問済み:

2022 年 11 月 7 日

編集済み:

2022 年 11 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by