利用matlab求方程时如果限定未知数范围,比如x*sin(x)-1/2=0,求解方程在-10到10上的解?
利用matlab求方程时如果限定未知数范围,比如x*sin(x)-1/2=0,求解方程在-10到10上的解?
>> x=solve('sin(x)*cos(x)-x*x=0')
x =
matrix([[0]])
这个方程只有两个解,为什么答案是这样?
>> x=solve('sin(x)*cos(x)-x*x=0')
x =
matrix([[0]])
这个方程只有两个解,为什么答案是这样?
数学人气:933 ℃时间:2020-02-05 09:28:39
优质解答
f=@(x)x.*sin(x)-1/2;x=fsolve(f,[-10:1:10])x =Columns 1 through 6-9.3714 -9.3714 -6.3619 -6.3619 -2.9726 -2.9726Columns 7 through 12-0.7408 0.7408 2.9726 2.9726 2.9726 6.3619Columns 13 through 156.3619...
我来回答
类似推荐
猜你喜欢
- 1点A(3,5)是圆x2+y2-4x-8y-80=0的一条弦的中线,则这条弦所在直线的方程是啊
- 2汇集,预定,爆发,诞生,庄严,宣告,肃立,瞻仰,肃静,飘佛,造句
- 3刘翔( )能获得世界冠军,( )他平时刻苦努力-----括号里填关联词
- 4sin10°sin30°sin50°sin70°的值为( ) A.12 B.14 C.18 D.116
- 5what day is it tody?回答 what is the date today 回答
- 6已知定义在R上的奇函数f(x)满足f(x+1)=-f(x),若f(1.5)=1,则f(2010.5)=?
- 7函数y=sin(x-π\3)sinx的最大值
- 8(1/2)WhOSe jaCKet is that?A.YeS,it iS.B.It,sMiKe,S.
- 9All the parents ----(listen) to the school choir at three o'clock then they went home.怎么填,
- 10英语单词发音的问题