> 其他 >
如何用MATLAB解方程tan(x) + 2*x = 0
RT
人气:328 ℃ 时间:2020-05-31 12:54:55
解答
% by dynamic of Matlab技术论坛
% 2010-04-28 7:57:06
%
这个方程的解估计不只有一个,因为tanx是周期函数,我们先绘图看看大概有几个解
>> fplot(@(x)tan(x)+2*x,[-100 100])
>> fzero(@(x)tan(x)+2*x,rand)
ans =
-3.6476e-023
这个符号是求解不出来的
>> solve('tan(x)+2*x=0','x')
ans =
matrix([[0]])
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版