Remove Zero Coefficients VI

Owning Palette: Polynomial VIs

Requires: Full Development System

Removes from P(x) In the trailing coefficients near zero whose absolute values are less than threshold. Wire data to the P(x) In 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

Remove Zero Coefficients (DBL)

P(x) In contains the real polynomial coefficients in ascending order of power.
threshold specifies the level at which the VI removes from P(x) In the trailing elements whose absolute values or relative values are less than or equal to threshold. If all the elements in P(x) In are less than or equal to threshold, P(x) Out returns a one-element array that contains the first element of P(x) In.
threshold type specifies how the VI removes the trailing elements from P(x) In. If threshold type is Absolute Value, the VI removes the trailing elements from P(x) In whose absolute values are less than or equal to threshold. If threshold type is Relative Value, the VI removes the trailing elements from P(x) In whose absolute values are less than or equal to threshold * |x|, where x is the coefficient which has the maximum absolute value in P(x) In.

0Absolute Value (default)
1Relative Value
P(x) Out returns the result of removing the trailing coefficients near zero from P(x) In.
number of zero coefficients returns the number of trailing near-zero coefficients that LabVIEW removed.
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.

Remove Zero Coefficients (CDB)

P(x) In contains the complex polynomial coefficients in ascending order of power.
threshold specifies the level at which the VI removes from P(x) In the trailing elements whose absolute values or relative values are less than or equal to threshold. If all the elements in P(x) In are less than or equal to threshold, P(x) Out returns a one-element array that contains the first element of P(x) In.
threshold type specifies how the VI removes the trailing elements from P(x) In. If threshold type is Absolute Value, the VI removes the trailing elements from P(x) In whose absolute values are less than or equal to threshold. If threshold type is Relative Value, the VI removes the trailing elements from P(x) In whose absolute values are less than or equal to threshold * |x|, where x is the coefficient which has the maximum absolute value in P(x) In.

0Absolute Value (default)
1Relative Value
P(x) Out returns the result of removing the trailing coefficients near zero from P(x) In.
number of zero coefficients returns the number of trailing near-zero coefficients that LabVIEW removed.
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.