chickadee » math » quadratic-solutions

quadratic-solutions a b cprocedure
 a : number
 b : number
 c : number

Returns a list of all real solutions to the equation a x^2 + bx + c = 0 with real coefficients.

> (quadratic-solutions 1 0 -1)
'(-1 1)
> (quadratic-solutions 1 2 1)
'(-1)
> (quadratic-solutions 1 0 1)
'()