如图,Matlab复合函数求导

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 19:33:44

如图,Matlab复合函数求导
如图,Matlab复合函数求导

如图,Matlab复合函数求导
syms t
th1 = sin(t);
th2 = cos(t);
x=th1+th2;
T= diff(x)^2+diff(th1)^2+diff(th2)^2 +th1*th2;
T=simplify( T) % 2 - sin(2*t)/2 = 2-th1*th2
pTth1=th2;
pTDth1=2*diff(th1);
dtpTDth1=2*diff(th1,2);