Polynomial of n-th order

| Vectorized |
in the palette on the schematic

The block is vectorized, forms the value of the output signal calculated by the formula:

where a0, a1, a2 ... an are coefficients of the polynomial, y(t) is the output signal, t is a current model time in seconds.

Inputs

none

Outputs

  • output - the port for the output value.

Properties:

  • Polynomial coefficients - a vector of coefficients a0, a1, a2, ... an, or several vectors (matrix rows) of coefficients, where each row specifies the values of the polynomial coefficients for the corresponding element of the output vector.
If a property is set by several vectors (matrix rows), then the coefficients of the polynomial are equal:
In this case, the output will be a vector signal:
where i is the row number of the coefficient matrix and the element number of the output vector, ni is the dimension of the i-th coefficient vector (i-th row of the matrix). The dimensions of vectors can be either the same or different.

Parameters

none

Прим.:
  1. By default, the block generates a scalar output signal.
  2. Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.