Formula for solutions of a cubic equation

201 Views Asked by At

I am looking for a simplified formula for a cubic equation in the form:

$$Ax^3+Bx^2+Cx+D=0$$

That solves for roots $r_1, r_2 $, and $r_3$ when the discriminant is positive and $r$ when it is negative. I am not looking for the complex roots or when the discriminant is zero.

Thanks in Advance,

Zach Hilman