用matlab求复合函数导数
发布网友
发布时间:2022-05-12 12:49
我来回答
共1个回答
热心网友
时间:2023-10-09 07:13
比较兜圈子:
clc;clear
syms t L k n b R
f1=t*L+1/2*k*n*R^(n-1)-b*R
f2=-1/(log(R))-1/2*k*R^n
[n,t]=solve(f1,f2)
R=solve(n-'n','R')
f2=subs(f2,'R',R)
结果:
n =
log(-2/k/log(R))/log(R)
t =
(log(-2/k/log(R))+b*R^2*log(R)^2)/L/R/log(R)^2
R =
exp(1/n*lambertw(-2/k*n))
f2 =
-1/log(exp(1/n*lambertw(-2/k*n)))-1/2*k*exp(1/n*lambertw(-2/k*n))^n