|
|
| Vector | |
in the palette |
on the schematic |
The block is vectorized, implements the calculation of integrals from table-defined functions by the trapezoidal method:
where
x is the numerical vector of the independent variable;
xmin,
xmax are the minimum and maximum values of the independent variable, respectively;
u(
x) is the numerical vector of the values of the function.
Inputs
- input_0 - the input for an array of arguments of table-defined functions, dimension npoint;
- input_1 - the input for table-defined functions, dimension npoint×nfun.
Outputs
- output - the integral value. The signal dimension is nfun.
Properties:
- Number of function points – a natural number npoint≥2, sets the number of points in the table by an independent argument and the dimension of the first input signal.
- Number of functions – a natural number nfun≥1, sets the number of functions and, together with the number of points, determines the dimension of the second input signal. Thus, it is possible to simultaneously calculate the integral of several functions defined at the same points by an independent argument. The dimension of the output signal is equal to nfun.
Прим.:
- The dimension of the output signal is always equal to the number of functions. The block generates a scalar output signal at nfun=1.
- 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.