Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers54
Suggested Problems
-
Return the 3n+1 sequence for n
8491 Solvers
-
984 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
884 Solvers
-
209 Solvers
-
Test Problem; Create a 5x5 array containing all ones
405 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
seriously?
>> assert(isequal(cubicRoots(x),y_correct))
cubicRoots(x)?
This problem has been corrected and is now solvable.