Matlab finding Real roots and Complex roots
157 次查看(过去 30 天)
显示 更早的评论
I have this problems and I cant figure it out how to do, please help me towards it thank you
Use MATLAB to determine the real and complex roots of:
(a) f (x) = x3 − x2 + 2x − 2
(b) f (x) = 2x4 + 6x2 + 8
(c) f (x) = x4 − 2x3 + 6x2 − 2x + 5
0 个评论
采纳的回答
Abhivandan Pandey
2020-6-14
编辑:Walter Roberson
2020-6-14
Hi Christina,
I understand you want to calculate the roots of a polynomial using MATLAB. There's a function roots() which takes in coeffecients of a polynomial as a vector and returns the roots of the polynomial.
Here's the documentation link for the function:https://in.mathworks.com/help/matlab/ref/roots.html
Regards,
Abhivandan
2 个评论
Walter Roberson
2020-6-14
I corrected your reference from root() to roots() . The link you posted, to roots(), is a good one for true polynomials with purely numeric coefficients.
There is also a function named root(), which is part of the symbolic toolbox, and can accept symbolic coefficients. It is not typically called by the user directly, and is much more often seen as a placeholder when solve() is used; https://www.mathworks.com/help/symbolic/sym.root.html
更多回答(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!