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.


icon

Inputs/Outputs

  • c1ddbl.png Roots

    Roots contains the real roots for a polynomial. If Roots is empty, the VI sets P(x) to 1.

  • i1ddbl.png P(x)

    P(x) returns the real polynomial coefficients in ascending order of power.

  • ii32.png 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)(xr2)…(xrn) = xn + Pn – 1xn – 1 + … + P1x + P0

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Polynomial\Create Polynomial from Roots of Unity.vi