This is an old revision of the document!
Table of Contents
DM32 Polynomial Solver
From the Owner's Manual
State File
Provided by Swiss Micros https://technical.swissmicros.com/dm32/examples/STATE/POLYROOT.d32
Local copy polyroot.d32
Use
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.
Quadratic
x2 - 3x + 2 = 0
- Run XEQ P
- Enter the order at the prompt for
F?- 2 R/S
- Enter coefficient
B- 3 +/- R/S
- Enter coefficient
A- 2 R/S
- 1st root is shown
X=1.0000R/S
- 2nd root is shown
X=2.0000R/S
- quits
The two roots of x2 - 3x + 2 = 0 are 1 and 2
4-th order
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
- XEQ P
- Enter order 4 at the prompt for
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.88197R/S
- The second root is shown
X = 3.11803R/S
- The third root is shown (it's complex)
X=-1.0000R/Si = 1.0000R/S
- The fourth root is shown (it's also complex)
X=1.0000R/Si=-1.0000R/S
- C
The 4 roots are
X = 0.88197X = 3.11803X = -1 + i1X = 1 - i1
Further Information
Page created : 17/04/26 09:41 BST
Page updated : 17/04/26 10:03 BST