class="resources"
Computes the composition of polynomials P(x) and Q(x). You can use this polymorphic VI to compute the composition of real polynomials or complex polynomials. The data types you wire to the P(x) and Q(x) inputs determine the polymorphic instance to use. Details

![]() |
P(x) contains the real polynomial coefficients in ascending order of power. |
![]() |
Q(x) contains the real polynomial coefficients in ascending order of power. |
![]() |
P(Q(x)) returns the real polynomial coefficients, in ascending order of power, for the polynomial that results from computing the composition of P(x) and Q(x). |
![]() |
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. |

![]() |
P(x) contains the complex polynomial coefficients in ascending order of power. |
![]() |
Q(x) contains the complex polynomial coefficients in ascending order of power. |
![]() |
P(Q(x)) returns the complex polynomial coefficients, in ascending order of power, for the polynomial that results from computing the composition of P(x) and Q(x). |
![]() |
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 following polynomial defines the nth order polynomial described by the (n + 1) element array P[0 n].

The following polynomial defines the mth order polynomial described by the (m + 1) element array Q[0 m].

The VI uses the following equation to compose P(x) and Q(x).
P(Q(x)) = P[n](Q[m]xm + Q[m 1]xm 1 + + Q[1]x + Q[0])n + P[n 1](Q[m]xm + Q[m 1]xm 1 + + Q[1]x + Q[0])n 1 + + P[1](Q[m]xm + Q[m 1]xm 1 + + Q[1]x + Q[0]) + P[0]