Create Polynomial From Roots (DBL) VI
- Updated2025-07-30
- 2 minute(s) read
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.

Inputs/Outputs
Roots
—
Roots contains the real roots for a polynomial. If Roots is empty, the VI sets P(x) to 1.
P(x)
—
P(x) returns the real polynomial coefficients in ascending order of power.
error
—
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 + P0Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Polynomial\Create Polynomial from Roots of Unity.vi
Roots
—
P(x)
—
error
—