i need to find the roots of the polynomial
1 次查看(过去 30 天)
显示 更早的评论
>> p=[1 8 22 24 9];
>> roots(p)
- for some reason i get this error message*
Error in roots (line 32)
r = zeros(0,1,class(c));
can anyone help please????
1 个评论
采纳的回答
Andrei Bobrov
2017-11-14
in my MATLAB:
>> format longg
>> p=[1 8 22 24 9];
roots(p)
ans =
-3.00000009061347 + 0i
-2.99999990938653 + 0i
-1 + 6.12790365933349e-09i
-1 - 6.12790365933349e-09i
>>
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!