Math Function

Purpose

Apply specified mathematical function

Library

Control / Math

Description

../../_images/math_function.svg

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)\)

mod and rem both return the floating-point remainder of \(u/v\). If \(u\) and \(v\) have different signs, the result of rem has the same sign as \(u\) while the result of mod has the same sign as \(v\).

Probe Signals

Input \(i\)

The \(i\)-th input signal.

Output

The block output signal.