20.6.3.5. Math Function
The Math block performs the common mathematical function specified in the function list.
Dialog box
Function: Select a function of the following types.
Function |
Description |
Mathematical Expression |
Equivalent in MATLAB |
exp |
Exponential |
\({{e}^{v}}\) |
exp |
log |
Natural logarithm |
In \(v\) |
log |
10^u |
Array power of base 10 |
\({{10}^{v}}\) |
10.^u |
Log10 |
Complex (base10) logarithm |
log \(v\) |
log10 |
Magnitude^2 |
Complex modulus |
\({{\left| v \right|}^{2}}\) |
(abs(u)).^2 |
square |
Array power 2 |
\({{v}^{2}}\) |
u.^2 |
sqrt |
Square root |
\({{v}^{0.5}}\) |
squrt |
pow |
Array power |
\({{v}^{v}}\) |
power |
reciprocal |
Array reciprocal |
\(1/v\) |
1./u |
Sample Time: Enter the time interval between samples.