Solving a quadratic equation - MATLAB Cody - MATLAB Central

Problem 1026. Solving a quadratic equation

Difficulty:Rate

Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

Solution Stats

18.51% Correct | 81.49% Incorrect
Last Solution submitted on Jun 08, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers96

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!