Engee documentation

Polynomial Evaluation

Calculation of the polynomial.

blockType: PolynomialEvaluation

Path in the library:

/Signal Operations/Math Functions/Polynomial Functions/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 checked, the polynomial expression is set in the Constant coefficients parameter. If the Use constant coefficients checkbox is not checked, the variable polynomial expression is set by entering the Coefficients port. In both cases, the polynomial is given as a vector of real or complex coefficients in descending exponential order.

The table below shows examples of how the block works for various specified coefficient vectors.

Vector of coefficients The equivalent polynomial

[1 2 3 4 5]

[1 0 3 0 5]

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

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

Ports

Input

# In — Input signal
vector | the matrix

Details

The input signal to which the block applies the polynomial function, specified as a vector or matrix.

Data types

Float32, Float64

Complex numbers support

Yes

# Coeffs — coefficients of the polynomial
vector

Details

The coefficients of the polynomial in descending order of degree, given as a vector.

Dependencies

To use this port, uncheck the box Use constant coefficients.

Data types

Float32, Float64

Complex numbers support

Yes

Output

# Out — Output signal
vector | the matrix

Details

The result of applying a polynomial function, returned as a vector or matrix of the same size and complexity as the input signal.

Data types

Float32, Float64

Complex numbers support

Yes

Parameters

Main

# Use constant coefficients — use constant coefficients
Logical

Details

Check the box to use the parameter Constant coefficients and disable the Coeffs input port.

Default value

false (switched off)

Program usage name

UseConstantCoefficients

Tunable

No

Evaluatable

No

# Constant coefficients — coefficients of the polynomial
Scalar / array of real and/or complex numbers

Details

The vector of coefficients of the polynomial in descending order of degree.

Dependencies

To use this port, check the box Use constant coefficients.

Default value

[5 4 3 2 1]

Program usage name

ConstantCoefficients

Tunable

No

Evaluatable

Yes