Algebraic equations in C. Extraction of roots
Overview
Important
Algebraic equations can have solutions (roots) that are complex numbers. For example, the equation (where and are complex numbers and is a positive integer) can be solved using polar form and De Moivre's Theorem. Every nonzero complex number has exactly distinct -th roots in the complex plane.
Important properties
-
A quadratic equation with real coefficients may have complex roots if the discriminant is negative.
-
Any polynomial equation of degree has exactly complex roots (counting multiplicities), according to the Fundamental Theorem of Algebra.
-
To extract -th roots of a complex number , use for .
-
The -th roots of unity are the solutions to and are evenly spaced around the unit circle.