** From the Owner's Manual **
Provided by Swiss Micros https://technical.swissmicros.com/dm32/examples/STATE/POLYROOT.d32
Local copy polyroot.d32
This set of programs will provide real and complex roots of polynomials up to 5th order. The coefficient of the highest term is assumed to be 1 and all the coefficients must be normalized to make this so.
'' x2 - 3x + 2 = 0 ''
F? ''
* 2 R/S
* Enter coefficient ''B AX=1.0000 R/SX=2.0000 R/S
The two roots of '' x2 - 3x + 2 = 0 '' are 1 and 2
4x4 - 8x3 - 13x2 - 10x + 22 = 0
This has a non-unity value for the highest term, so all the coefficients need to be divided by 4 to make it so, this can be done as they are entered
F? ''
* 4 R/S
* Enter the coefficients starting at the second one (for x3) and dividing by 4
* 8 +/- ENTER 4 ÷ R/S
* 13 +/- ENTER 4 ÷ R/S
* 10 +/- ENTER 4 ÷ R/S
* 22 ENTER 4 ÷ R/S
* The first root is shown
* ''X = 0.88197 R/SX = 3.11803 R/SX=-1.0000 R/Si = 1.0000R/SX=1.0000 R/Si=-1.0000 R/SThe 4 roots are
X = 0.88197X = 3.11803X = -1 + j1X = 1 - j1'' X3 = -8''
'' X3 + 8 = 0 ''
C (the coefficient of x2)B (the coefficient of x)A (the constant term)X = -2.00000 R/Si = 1.73205 R/SX = 1.0000 R/Si = -1.73205 R/S
The three cube roots of -8 are
-2Page created : 17/04/26 09:41 BST
Page updated : 19/04/26 21:09 BST