
matlab中怎么 用fsolve函数求方程y=x^3+10*x^2-2*sin(x)-50 的数值解!谢谢啊
展开全部
fun.m
function f=fun(x)
f=x.^3+10*x.^2-2*sin(x)-50;
>>[x,f,h]=fsolve(@fun,[-4,4])
x =
-2.564769814322712 2.070673355182788
f =
1.0e-007 *
-0.000000071054274 0.114992886324217
h =
1
function f=fun(x)
f=x.^3+10*x.^2-2*sin(x)-50;
>>[x,f,h]=fsolve(@fun,[-4,4])
x =
-2.564769814322712 2.070673355182788
f =
1.0e-007 *
-0.000000071054274 0.114992886324217
h =
1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询