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.


icon

Inputs/Outputs

  • c1ddbl.png P(x) In

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

  • cdbl.png threshold

    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.

  • cu16.png threshold type

    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
  • i1ddbl.png P(x) Out

    P(x) Out returns the result of removing the trailing coefficients near zero from P(x) In.

  • ii32.png number of zero coefficients

    number of zero coefficients returns the number of trailing near-zero coefficients that LabVIEW removed.

  • 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.