0% found this document useful (0 votes)
4 views1 page

Real Roots of Cubic Equations Guide

This document outlines an algorithm to find the real roots of a cubic equation of the form ax3 + bx2 + cx + d = 0. It begins by defining several variables in terms of the coefficients a, b, c, and d. It then uses these variables to determine the real roots through a series of conditional statements checking whether certain values are equal to 0 or other thresholds. The real roots are provided as solutions to the cubic equation.

Uploaded by

Sanji99
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Real Roots of Cubic Equations Guide

This document outlines an algorithm to find the real roots of a cubic equation of the form ax3 + bx2 + cx + d = 0. It begins by defining several variables in terms of the coefficients a, b, c, and d. It then uses these variables to determine the real roots through a series of conditional statements checking whether certain values are equal to 0 or other thresholds. The real roots are provided as solutions to the cubic equation.

Uploaded by

Sanji99
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Start

Algorithm to
find the real
roots of the
cubic equation

ax 3 bx 2 cx d 0

b
3a

c be
a

ce d 2ae 3
a

Is f 0 ?

Yes

4g
h3

Yes

x1

g e

End

No
4 f

Is f 0 ?

sinh1 i
e
x1 h sinh
3

End

No

Is i 1 ?

Yes

x1

cosh1 i
hi
e
cosh

i
3

End

No

cos-1 i
3

x2 h cos (1200 j ) e

x1 h cos j e

Is j 00 or 600 ?

Yes

No
x3 h cos (1200 j ) e

End

End

You might also like