方程2.4*ln(r+1)-2.08*ln(r)=5.48*ln(r+0.6)用matlab怎么解?我试了这样 solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');怎么不出现结果呢?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 02:41:31
方程2.4*ln(r+1)-2.08*ln(r)=5.48*ln(r+0.6)用matlab怎么解?我试了这样solve(''2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.

方程2.4*ln(r+1)-2.08*ln(r)=5.48*ln(r+0.6)用matlab怎么解?我试了这样 solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');怎么不出现结果呢?
方程2.4*ln(r+1)-2.08*ln(r)=5.48*ln(r+0.6)用matlab怎么解?
我试了这样 solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');怎么不出现结果呢?

方程2.4*ln(r+1)-2.08*ln(r)=5.48*ln(r+0.6)用matlab怎么解?我试了这样 solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');怎么不出现结果呢?
显然,该用数值方法.
fun=inline('2.4*log(r+1)-2.08*log(r)-5.48*log(r+0.6)','r')
ezplot(fun) ,grid
r=fsolve(fun,0.5)
结果:
fun =
Inline function:
fun(r) = 2.4*log(r+1)-2.08*log(r)-5.48*log(r+0.6)
Optimization terminated: first-order optimality is less than options.TolFun.
r =
0.8060

solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');
我试了一下,一直处于busy。
那就没有解析解吧,按照楼下的方法可以解出数值解

显然,该用数值方法。
fun=inline('2.4*log(r+1)-2.08*log(r)-5.48*log(r+0.6)','r')
ezplot(fun) ,grid
r=fsolve(fun,0.5)
结果:
fun =
Inline function:
fun(r) = 2.4*log(r+1)-2.08*log(r...

全部展开

显然,该用数值方法。
fun=inline('2.4*log(r+1)-2.08*log(r)-5.48*log(r+0.6)','r')
ezplot(fun) ,grid
r=fsolve(fun,0.5)
结果:
fun =
Inline function:
fun(r) = 2.4*log(r+1)-2.08*log(r)-5.48*log(r+0.6)
Optimization terminated: first-order optimality is less than options.TolFun.
r =
0.8060
solve('2.4*log(r+1)-2.08*log(r)=5.48*log(r+0.6)');
我试了一下,一直处于busy。
那就没有解析解吧,按照楼下的方法可以解出数值解

收起