TrigFunc
This block performs a trigonometric function chosen in a list of available functions. The function is applied to each entry of the input.
Library
Activate/MathOperations
Description
The TrigFunc block performs a trigonometric function chosen in a list of available functions. The function is applied to each entry of the input to obtain the corresponding entry of the output.
Available functions are "sin", "cos", "tan", "asin", "acos", "atan", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh".
Input data type can be either double or complex. Input and output data types are similar, i.e., if the input is double the output is also double. If the input value to a function such as Asin(x) with real input/output port becomes greater than 1, an error message is raised.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
func | Function | String | 'sin' | |
externalActivation | External activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | input | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |