how to differentiate this equation
2 ビュー (過去 30 日間)
古いコメントを表示
if I have this equation
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 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2020 年 3 月 2 日
編集済み: KALYAN ACHARJYA
2020 年 3 月 2 日
syms s
theta_D=diff(theta,s);
theta_2D=diff(theta,s,2); %or theta_2D=diff(theta_D,s);
2 件のコメント
Walter Roberson
2020 年 3 月 2 日
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.
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!