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? 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? 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/S X = 1.00000 R/Si = 1.73205 R/SX = 1.0000 R/Si = -1.73205 R/S
The three cube roots of -8 are
-2 1 + j1.73205 1 - j1.73205 Page created : 17/04/26 09:41 BST
Page updated : 01/01/70 01:00 BST