Math Function
Purpose
Apply specified mathematical function
Library
Control / Math
Description
The Math Function block calculates the output by applying the specified function to the input. For functions that require two inputs, the first input is marked with a black dot.
Parameters
- Function
Chooses which function is applied to the input signals. Available functions are:
square: \(y=u^2\)square root: \(y=\sqrt{u}\)exponential: \(y=e^u\)logarithm: \(y=\ln(u)\)power: \(y= u^v\)mod: \(y= \text{mod}(u, v)\)rem: \(y= \text{rem}(u, v)\)
modandremboth return the floating-point remainder of \(u/v\). If \(u\) and \(v\) have different signs, the result ofremhas the same sign as \(u\) while the result ofmodhas the same sign as \(v\).
Probe Signals
- Input \(i\)
The \(i\)-th input signal.
- Output
The block output signal.