Why do I receive different answers from the derivative with and without using chain rule?
Show older comments
Hi, I'm new to MATLAB. I am trying to get the derivative of exp(-i*phi) using syms but I receive different answers after using the chain rule. I use vpa(a1(1,1)) vpa(a2(1,1)) to check.
syms x y
f(x,y) = exp(-1i*x/sqrt(3))*(1+2*exp(1i*sqrt(3)*x/2)*cos(y/2));
phi(x,y) = angle(f);
a1(x,y) = diff(exp(-1i*phi),y);
a2(x,y) = -1i*exp(-1i*phi)*diff(phi,y);
Accepted Answer
More Answers (0)
Categories
Find more on Pulsed Waveforms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



