You are on page 1of 6

Quadratic Equation (2nd Degree Polynomial) Solution:

a*(x^2) + b*(x) + c = 0
Input Equation Coefficients:
a=
2.0000
b=
8.0000
c=
-10.0000
Roots of Quadratic Equation:
x1 =
= (-b+SQRT(b^2-4*a*c))/(2*a)
1.0000
x2 =
= (-b-SQRT(b^2-4*a*c))/(2*a)
-5.0000

Cubic Equation (3rd Degree Polynomial) Solution:


a*(x^3) + b*(x^2) + c*(x) + d = 0
Input Equation Coefficients:
a=
2.0000
b=
-4.0000
c=
-22.0000
d=
24.0000
Solve Cubic Equation:
f=
-12.333
g=
4.074
h=
-65.333
i=
8.336
j=
2.028
k=
1.818
L=
-2.028
M=
0.822
N=
0.986
P=
0.667
R=
N.A.
S=
N.A.
T=
N.A.
U=
N.A.

= ((3*c/a)-(b^2/a^2))/3
= ((2*b^3/a^3)-(9*b*c/a^2)+(27*d/a))/27
= (g^2/4)+(f^3/27)
= SQRT((g^2/4)-h)
= i^(1/3)
= ACOS(-(g/(2*i)))
= j*(-1)
= COS(k/3)
= SQRT(3)*SIN(k/3)
= (b/(3*a))*(-1)
= -(g/2)+SQRT(h)
= R^(1/3)
= -(g/2)-SQRT(h)
= T^(1/3)

Roots of Cubic Equation:


Case #1: If h > 0
Case #2: If h <= 0
x1 =
x2 =
x3 =

N.A.

4.0000

N.A.

-3.0000

N.A.

1.0000

Case #3: If f, g, h = 0
= 2*j*COS(k/3)-(b/(3*a))
N.A.
= L*(M+N)+P
N.A.
= L*(M-N)+P
N.A.

Quartic Equation (4th Degree Polynomial) Solution:


a*(x^4) + b*(x^3) + c*(x^2) + d*(x) + e = 0
Input Equation Coefficients:
a=
2.0000
b=
6.0000
c=
-123.0000
d=
-126.0000
e=

1080.0000

Modified Coefficients (dividing each by 'a'):


ao =
= a/a
1.0000
bo =
= b/a
3.0000
co =
= c/a
-61.5000
do =
= d/a
-63.0000
eo =

540.0000

= e/a

f=
= co-(3*bo^2/8)
-64.875
g=
= do+(bo^3/8)-(bo*co/2)
32.625
h=
= eo-(3*bo^4/256)+(bo^2*co/16)-(bo*do/4)
551.707
Substitute 'f', 'g', and 'h' into following Cubic Equation:
(y^3) + (f/2)*(y^2) + ((f^2-4*h)/16*y - g^2/64 = 0
a1 =
=1
1.000
b1 =
= (f/2)
-32.438
c1 =
= ((f^2-4*h)/16
125.121
d1 =
= -(g^2/64)
-16.631
Solve Cubic Equation:
f1 =
= ((3*c1/a1)-(b1^2/a1^2))/3
-225.609
g1 =
= ((2*b1^3/a1^3)-(9*b1*c1/a1^2)+(27*d1/a1))/27
-1191.941
h1 = -70130.947 = (g1^2/4)+(f1^3/27)
i=
= SQRT((g1^2/4)-h1)
652.160
j=
= i^(1/3)
8.672
k=
= ACOS(-(g1/(2*i)))
0.418
L=
= j*(-1)
-8.672
M=
= COS(k/3)
0.990
N=
= SQRT(3)*SIN(k/3)
0.241
P=
= (b1/(3*a1))*(-1)
10.813
R=
= -(g1/2)+SQRT(h1)
N.A.
S=
= R^(1/3)
N.A.
T=
= -(g1/2)-SQRT(h1)
N.A.
U=
= T^(1/3)
N.A.
Roots of Cubic Equation:
Case #1: If h1 > 0
Case #2: If h1 <= 0
Case #3: If f1, g1, h1 = 0
y1 =
= 2*j*COS(k/3)-(b/(3*a1))
N.A.
27.9882
N.A.
y2 =
= L*(M+N)+P
N.A.
0.1378
N.A.
y3 =
= L*(M-N)+P
N.A.
4.3114
N.A.
p=
q=
r=
s=

5.2904
0.3712
-2.0764
0.7500

Roots of Quartic Equation:


x1 =
2.8352
x2 =
6.2455
x3 =
-3.5927

= SQRT(y1)
= SQRT(y2)
= -g/(8*p*q)
= b/(4*a)

= p+q+r-s
= p-q-r-s
= -p+q-r-s

x4 =

-8.4880

= -p-q+r-s

You might also like