|
FhSim
3.1.0
Marine systems simulation
|
Perform mathematical functions.
Collaboration diagram for Math function:Performs basic mathematical functions (exp, log, log10, root, sqrt, pow). The mathfunction object is defined through its parameters, which give the kind of mathfunction, the port widths and the number of input ports.
| Function | Input ports | Input name |
|---|---|---|
| Exponential | 1 | exp |
| Natural logarithm | 1 | log |
| Base 10 logarithm | 1 | log10 |
| Square root | 1 | sqrt |
| Raise to power | 2 | pow |
| Root of number | 2 | root |
| Name | Width | Description |
|---|---|---|
| In | <PortWidth> | The input signal. This input is used for the following functions: exp, log, log10 and sqrt |
| In1 | <PortWidth> | The base for pow and root. This input is used for the following functions: pow and root |
| In2 | <PortWidth> | The the exponent or root value. This input is used for the following functions: pow and root |
| Name | Width | Description |
|---|---|---|
| Out | <PortWidth> | The result of the operations on the input |
| Name | Width | Description |
|---|---|---|
| PortWidth | - |
The number of elements in the input and output ports |
| MathType | - | Specify the math function: exp / log / log10 / sqrt / pow / root |
There are no initial conditions for this function.
This SimObject is referred to as Math/Mathfunction