Owning Palette: Polynomial VIs
Requires: Full Development System
Creates polynomial P(x) from its roots. Wire data to the Roots input to determine the polymorphic instance to use or manually select the instance.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
Roots contains the real roots for a polynomial. If Roots is empty, the VI sets P(x) to 1. | |
P(x) returns the real polynomial coefficients in ascending order of power. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Roots contains the complex roots for a polynomial. If Roots is empty, the VI sets P(x) to 1. | |
P(x) returns the complex polynomial coefficients in ascending order of power. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The VI uses the following equation to create P(x):
P(x) = (x – r1)(x – r2)…(x – rn) = xn + Pn – 1xn – 1 + … + P1x + P0
Refer to the Create Polynomial from Roots of Unity VI in the labview\examples\Mathematics\Polynomial directory for an example of using the Create Polynomial From Roots VI.