Documentation Center

  • Trial Software
  • Product Updates

PS Math Function

Apply mathematical function to input physical signal

Library

Physical Signals/Functions

Description

The PS Math Function block applies a mathematical function to the input physical signal, u. The block output is the result of the operation of the function on the input. You can select one of the following functions from the Function choice parameter list.

FunctionDescriptionMathematical Expression
sin(u)Sinussin(u)
cos(u)Cosinuscos(u)
exp(u)Exponentialeu
log(u)Natural logarithmln(u)
10^uPower of base 1010u
log10(u)Common (base 10) logarithmlog(u)
u^2Power 2u2
sqrt(u)Square rootu0.5
1/uReciprocal1/u

The PS Math Function block issues a simulation-time error when the input falls out of the expected domain for the particular function used. For example, if set to sqrt, the PS Math Function block issues an error if it receives negative input during simulation.

Dialog Box and Parameters

Function choice

Select the function to perform. The block output is the result of the operation of the function on the input.

Ports

The block has one physical signal input port and one physical signal output port.

See Also

| | | |

Was this topic helpful?