Question: Using with MATLAB 3-Develop a solver for the quadratic equation ax2 + bx + c = 0 where a, b and c are real numbers.

 Using with MATLAB 3-Develop a solver for the quadratic equation ax2 Using with MATLAB

3-Develop a solver for the quadratic equation ax2 + bx + c = 0 where a, b and c are real numbers. The interface of your solver should be function x,ier1-00 ID (a,b,c) % a,b,c : coefficients of the quadratic equation % x : a (2x1) vector containing the root s . (may be complex) % ier: a signal to describe the resulting roots ier =0 => two real roots are calculated ier-1-> two complex roots are calculated er-10one real root is calculated. ier 1error; x is not computed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!