home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
programs
/
education
/
cubic
/
!Cubic
/
!Help
next >
Wrap
Text File
|
1994-04-16
|
2KB
|
40 lines
+=========================================================================+
| |
| Cubic |
| |
+=========================================================================+
| |
| by Mike Williams |
| |
| 111 Evering Road, London N16 7SL |
| |
+=========================================================================+
| |
| This program is in the public domain and may be copied |
| freely as long as no profit is made in the process |
| |
+=========================================================================+
This program solves cubic equations.
A cubic equation takes the general form
Ax³ + Bx² + Cx + D = 0
Enter the values for A, B, C, D into the writable icons in the
"parameter" section of the window, then press return. The equation will then
be solved and the roots displayed in the "solution" section of the window.
ACCURACY
========
The results are displayed to 4 places of decimals, but the fourth decimal
place is not always reliable.
In some cases an equation which really has three real roots will be reported
as having one real and two complex roots, with the imaginary parts being
0.0000 and -0.0000. This is due to slight inaccuracies in BASIC real
arithmetic.