Write function that uses a, b and c as inputs to compute the discriminant and the roots of the quadratic equation. function discriminant] = my_quadratic(a,b,c) b) Write the m-file that prompts the user to input values of a, b and c and uses the function in written in part a) to output the roots and its characteristics. Print the roots to 3 decimal places. Ensure that your program checks that the user enters a non-zero value for the `a’ coefficient. Note: You may need to separate the complex variable into real and imaginary terms to display them as x = g + hi. Look up the real() and functions.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now