Question: Write C code Write a function called quadratic formula() that finds one root of a quadratic equation. A quadratic equation has the form: ax^2 +
Write a function called quadratic formula() that finds one root of a quadratic equation. A quadratic equation has the form: ax^2 + bx+ c = 0. The quadratic_formula () function should find one root of a given equation. Use the formula: x = (-b + /(b^2 - 4ac))/2a The function accepts a, b, and c as double precision input parameters. You do not need to check to see if a is 0. You may also assume that b^2 - 4ac > = 0. This function returns the root. You may use functions from
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
