Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.
Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers74
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2055 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
894 Solvers
-
Calculate distance travelled when given radius and rotations
242 Solvers
-
Element by element multiplication of two vectors
399 Solvers
-
Convert from Fahrenheit to Celsius
28569 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!
Please supply more than one test case and check each and every problem before posting. The current test suite has the wrong answer for the only case and can, therefore, not be properly solved.
awful task!
Test case 4 answer is wrong
Please modify the test case 4. It is wrong.
This problem has been fixed and is now solvable.
Applied a tolerance, which is crucial, since tiny variations in the least significant bits due to floating point arithmetic can cause a valid solution to fail.