| Using Simulink | Search  Help Desk |
| Math Function |
Perform a mathematical function.
Library
MathDescription
exp, log, 10u, log10, square, sqrt, pow, reciprocal, hypot, rem, and mod. The block output is the result of the function operating on the input or inputs.
The name of the function appears on the block icon. Simulink automatically draws the appropriate number of input ports.
Use the Math Function block instead of the Fcn block when you want vectorized output because the Fcn block can produce only scalar output.
Data Type Support
A Math Function block accepts complex or real-valued signals or signal vectors of typedouble.The output signal type is real or complex, depending on the setting of the Output signal type parameter.
Parameters and Dialog Box

Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Inherited from driving block |
| Scalar Expansion |
Of the input when the function requires two inputs |
| Vectorized |
Yes |
| Zero Crossing |
No |