How to solve this equation with MATLABx^4-3*x^3+x-1=0 display the solutions to 10 digits.( I need the steps in details..thx..XD..)
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/27 15:34:47
How to solve this equation with MATLAB
x^4-3*x^3+x-1=0
display the solutions to 10 digits.
( I need the steps in details..thx..XD..)
至少三种算法 下面我依依列出
1.roots()
format long
p=[1 -3 0 1 -1];
roots(p)
ans =
2.922999610168974
-0.777825957360212
0.427413173595619 + 0.507101559314036i
0.427413173595619 - 0.507101559314036i
2.solve()
>> root=solve('x^4-3*x^3+x-1=0') ;
>> vpa(root,10)
ans =
2.922999610
-.777825958
.4274131736+.5071015593*i
.4274131736-.5071015593*i
3.fsolve()
>>fun=@(x)x^4-3*x^3+x-1;
>> fsolve(fun,3)
Optimization terminated:first-order optimality is less than options.TolFun.
ans =
2.922999611237489
>> fsolve(fun,-1)
Optimization terminated:first-order optimality is less than options.TolFun.
ans =
-0.777825959457477
i wish i __(know)how to solve this problem.
i don't know how to solve this problem.
HOW TO SOLVE IT怎么样
She hardly knew how to solve this problem,---- ----- .〔反意疑问句〕翻译带原因
my destiny is to solve this problem,no matter how hard it is!意思是?
This is a difficult question.Let's _____ and see how to solve it.
He didn't know how to solve this problem.(保持句意基本不变)He (空三格) this problem.
how to solve the generation gap?
how to solve your problems意思
How.to solve.it?Please tell.me
这句英语语法有哪些错误的地方?I know how to solve this problem. But I know who can be resolved.是不是应该改成:I do not know how to solve this problem.
problem,out,you,time,math,solve,this,how,need,work,much,to连词成句!3Q
in this way he was able to solve the mystery.____he did ita,like this,b,that's how为什么选b/ a不是也行吗
You must turn to him for help.Only how to solve this prolem.A.knows he B,does he know C.he knows D.he is knowing
How to solve the problem of pollution in nowadays
the problem which how to solve 这句话对嘛?
how to solve 16^X+4^X-20=0
how to sing this