Engee documentation

Polynomial Evaluation

Polynomial Calculation.

polynomial evaluation

Description

Block Polynomial Evaluation applies a polynomial function to the input signal on the In port. The polynomial is defined as a vector of real coefficients in descending order of degree.

When the Use constant coefficients checkbox is selected, the polynomial expression is specified in the Constant coefficients parameters. When the Use constant coefficients checkbox is unchecked, the variable polynomial expression is specified by input to the Coeffs port. In both cases, the polynomial is specified as a vector of real or complex coefficients in descending order of exponent.

The table below shows examples of block operation for different vectors of coefficients.

Coefficient vector Equivalent polynomial

[1 2 3 4 5]

[1 0 3 0 5]

[1 2+i 3 4 4-3i 5i].

Each element of a vector or matrix arriving at the input of port In is processed independently, and the output size is equal to the input size.

Ports

Input

In - input signal

Input signal.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

Coeff - coefficients of the polynomial
vector

Coefficients of the polynomial.

Dependencies

To use this port, uncheck Use constant coefficients.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

Output

Out - output signal
scalar | vector | matrix

The result of applying the polynomial function.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

Parameters

Use constant coefficients - use constant coefficients

Select the checkbox to use the Constant coefficients parameters and disable the Coeffs input port.

Constant coefficients - polynomial coefficients

Vector of polynomial coefficients in descending order of degree.