Question: Write a MATLAB program to solve the quadratic equation: ax2 + bx = c = 0 . The input to the program should be the
Write a MATLAB program to solve the quadratic equation: ax2 + bx = c = 0 . The input to the program should be the coefficients a, b and c. Given these coefficients, the program should be able to identify between the three potential solution cases: (i) two discrete real solutions, (ii) one solution, (iii) two distinct complex solutions. Run your code for three different sets of coefficients that generate each of the above solution types. In making your code, make sure follow the General Program Structure from the first pages of the posted notes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
