Sei sulla pagina 1di 2

Cubic equation solver Calculation area

A B C D Case1
1 5 -1 -1 Case2
Case3
Case 3
Roots Three real roots
a
x1 x2 x3 5
0.525428 -5.15633 -0.3691
A B C D x1 x2 x3
1 -1 -2 -4 2.467
1 3 3 1 -1.000 -1.000 -1.000
1 -1 -9 9 3.000 -3.000 1.000
Sample problems
3 2
2 3 3 2
1/ 3 1/ 3
1 2 3 2
1/ 2
1
Case 1 = 0 Three real roots with at least
0
(3 ) 2 9 27

3 27 27 4
2
2 3 2
two equal
Case 2 > 0 One real
3
2
root
x ax bx c
b a a ab c q r
q r d
r a r a
x x x x
r
x
d
d
d
+ + + =
- - +
= = = +
- -
= - = - =


-
= +
1/ 3 1/ 3
1/ 2
1 2 3

2 3
3r 3
cos()=
2q
+2 +4
2 cos 2 cos
Case 1 < 0
2 cos
3 3 3 3 3 3 3 3 3
Three real roots
r a
d
q
q a q a q a
x x x
d
-
+ - -


-


- - -
= - = - = -


Enter coefficient here
Ax3+Bx2+Cx+D=0
Bernard V Liengme Page 1 8/27/2014
Calculation area
x1 x2 x3
5.664965765 0.039077 0.039077
#NUM!
0.525427561 -5.15633 -0.3691
cos -0.90441
theta 2.700803
b c q r d
-1 -1 -9.33333 9.925926 -5.48148
A B C D x1 x2 x3
1 -1 -2 -4 2.467
1 3 3 1 -1.000 -1.000 -1.000
1 -1 -9 9 3.000 -3.000 1.000
Sample problems
Bernard V Liengme Page 2 8/27/2014