MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

48 correct solutions
166 incorrect solutions

Last solution submitted on May 29, 2015

1 Comment

Matt Eicholtz
on 17 Jan 2015

Not a great solution, but not a great test suite either.

1 Comment

@bmtran
on 20 Nov 2012

wow, my use of transpose instead of ctranspose destroyed me this time...

4 Comments