如何用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]])
推荐
- 如何用matlab解方程x*tan(x)=285.71,
- 用matlab绘制y=tan(sin(x^2))
- matlab求解方程log(x)=tan(x),
- 如何用MATLAB解方程s=150000*(1+0.01*x)=160590 求X
- 如何用matlab求解两曲线交点,方程式这样的,tan(x)=5x+6,怎么用matlab求出x的值
- 现在英国和美国货币中还有penny,dime,nickel,quarter这些符号吗?
- The poor man ----(be) hungry for quite a few days 中间填什么为什么
- 在晴朗的夏日中午,如果往叔或花的叶子上浇水,常会使叶子烧焦,你知道是为什么吗?
猜你喜欢