Problem 1155. Find the solution of algebraic equation
Find the solution of algebraic equation of the form
an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0;
Input to the function is of the form : [an an-1 an-2 .....a2 a1 a0] :coef vector
eg: equation x^5-5=2 -> Input = [1 0 0 0 0 -5]
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
trekker
on 2 Jan 2013
The author should make some change: either the spec or the test cases are flawed, the order of the solution should not matter.
Jihye Sofia Seo
on 13 Feb 2017
i' = -i
i.' = -i
.' is transpose
' is transpose and then complex conjugate
Dyuman Joshi
on 29 Jun 2021
Test suite has modified to correct ambiguities.
Solution Comments
Show commentsProblem Recent Solvers53
Suggested Problems
-
Remove all the words that end with "ain"
2396 Solvers
-
Arrange Vector in descending order
11847 Solvers
-
Matrix indexing with two vectors of indices
732 Solvers
-
431 Solvers
-
624 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!