如图,Matlab复合函数求导

2024-12-02 08:34:22
推荐回答(1个)
回答1:

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);