a = roots([1,6,9])
I was using roots to output the roots of the equation x^2+6x+9=0
this gives:
a =
-3.0000 + 0.0000i
-3.0000 – 0.0000i
when I use other values that create a quadratic equation with equal roots it seems to work fine, can someone explain to me why this is the case?
Best Answer