how to differentiate this equation
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
if I have this equation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/274573/image.png)
theta=-2*alpha*sin(kn*pi/n)*sin(2*kn*pi*s/L+2*kn*pi*(i)/n+kn*pi/n)
how can I differenat theta(s) to theta_D and theta_DD
0 commentaires
Réponses (1)
KALYAN ACHARJYA
le 2 Mar 2020
Modifié(e) : KALYAN ACHARJYA
le 2 Mar 2020
syms s
theta_D=diff(theta,s);
theta_2D=diff(theta,s,2); %or theta_2D=diff(theta_D,s);
2 commentaires
Walter Roberson
le 2 Mar 2020
diff() can only be used to differentiate symbolic expressions or symbolic functions. If you attempt to differentiate a numeric array but pass in a symbolic variable as the second parameter, or pass in anything that is not a scalar integer (such as a vector of numeric values), then you would get that error.
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!