How to do partial derivates?

13 visualizzazioni (ultimi 30 giorni)
Kalle
Kalle il 7 Nov 2022
Modificato: Torsten il 7 Nov 2022
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?

Risposte (1)

Torsten
Torsten il 7 Nov 2022
Modificato: Torsten il 7 Nov 2022
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".

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by