Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write function that uses a, b and c as inputs to compute the discriminant and the roots of the quadratic equation.

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.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question