作业帮 > 综合 > 作业

如何用matlab求解下面的一元非线性方程?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/14 16:54:29
如何用matlab求解下面的一元非线性方程?
方程如下:
(1899392341*sin(a))/600745 - (55375870*cos(a))/120149 - 47944874479/240298
其中a在0到pi/2之间.
我用solve,结果显示无解析解.用fsolve,初始值设定为0,也不行
结果如下:No solution found.
fsolve stopped because the problem appears regular as measured by the gradient,
but the vector of function values is not near zero as measured by the
default value of the function tolerance.
ans =
1.7155
方程为:(1899392341*sin(a))/600745 - (55375870*cos(a))/120149 - 47944874479/240298=0
ezplot('(1899392341*sin(a))/600745 - (55375870*cos(a))/120149 - 47944874479/240298',[0 pi/2])
%你自己看这个图,在0到pi/2之间全部都小于0,怎么会有实解
A=solve('(1899392341*sin(a))/600745 - (55375870*cos(a))/120149 - 47944874479/240298=0')%得到2个复数解
double(A)