A vector of the equation roots. For the quadratic equation, if there are complex roots, roots[1] is the real part and roots[2]
is the imaginary part (i.e., complex roots are roots[1] +- roots[2]*i).
Otherwise, roots are (possibly identical) real roots.
For the cubic equation, the first root roots[1] is always real.
If there are complex roots, roots[2] is the real part and roots[3]
is the imaginary part (i.e., complex roots are roots[2] +- roots[3]*i).
Otherwise, roots[2:3] are (possibly identical) real roots.