作业帮 > 综合 > 作业

matlab solve 函数 求 (1+0.2x^2)^(-0.5)/x=4.2336

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/24 15:07:16
matlab solve 函数 求 (1+0.2x^2)^(-0.5)/x=4.2336
我用的是
x=solve('(5./6).^3./x.*(1+0.2.*x.^2).^(-0.5)-2.45=0','x')
但是报错
Undefined function 'solve' for input arguments of type 'char'.
Error in hw5 (line 2)
x=solve('(5./6).^3./x.*(1+0.2.*x.^2).^(-0.5)-2.45=0','x')
solve('(1+0.2*x^2)^(-0.5)/x-4.2336','x')
ans =
-2.2483736404260589268213973954644*i
.23491280714922488126221217004630
solve('(1+0.2*x^2)^(-0.5)/x-2.45','x')
ans =
.40173129301149661325925670533651
-2.2718688412372508586562740932215*i