Quadratic roots revisited
From Programming In C
[edit]
Exercise 3.3
For exercise 2.1 you wrote a program that calculated the real roots of a quadratic equation. You were given test values that were guaranteed to give real results. Write a program that can handle equations with complex roots.
Hint: The square root of a negative number is i times the square root of the absolute value of the number (where i is the square root of minus 1).
