MATLAB: Hi. My question is that;

problems with derivation of trigonometric expressionsSymbolic Math Toolbox

syms x ;
a = cos(x); b=diff(a); clear x; x=pi/6; then I want to acuire b for x?? so when I run program result mus be -sin(pi/6)=-0.5 Please HElp me…Thanks for your interests…

Best Answer

b=subs(b,x)