Trigonometric Function
Applies the trigonometric function to the input signal.
Description
Block Trigonometric Function performs general trigonometric functions.
Supported functions
The function to be used is specified by the parameters Function:
-
sin
- sine, ; -
cos
- cosine, ; -
tan
- tangent, ; -
asin
- arcsinus, ; -
acos
- arccosine, ; -
atan
- arctangent, ; -
atan2
- four-quadrant arctangent, ; -
sinh
- hyperbolic sine, ; -
cosh
- hyperbolic cosine, ; -
tanh
- hyperbolic tangent, ; -
asinh
- hyperbolic arcsine, ; -
acosh
- hyperbolic arccosine, ; -
atanh
- hyperbolic arctangent, ; -
sincos
- sine, , and cosine, .
Ports
Input
#
IN_1
—
input signal, rad
scalar
| vector
| matrix
Details
An input signal in the form of a scalar, vector or matrix. Values are considered to be expressed in radians.
Data types |
|
Complex numbers support |
Yes |
#
IN_2
—
the real part of the function argument for atan2
scalar
| vector
| matrix
Details
Enter the real part of the function argument for atan2
.
If the parameters for . Function is set to atan2
, the block shows two input ports. The first input port (In_1) is the imaginary part of the function argument. The second input port (In_2) is the real part of the function argument.
Dependencies
In order to use this port, set the parameter Function value atan2
.
Data types |
|
Complex numbers support |
Yes |
Output
#
OUT_1
—
specified trigonometric function from the input signal
scalar
| vector
| matrix
Details
The result of applying the specified trigonometric function to the input signal (in radians). Each function supports:
-
Scalar operations.
-
Elemental vector and matrix operations.
Data types |
|
Complex numbers support |
Yes |
#
cos
—
cosine of input signal
scalar
| vector
| matrix
Details
The cosine of the input signal in radians.
When the parameters are set to Function is set to sincos
, the unit displays two input ports. The first input port (sin) is the sine value of the input signal. The second input port (cos) is the cosine value of the input signal.
Dependencies
To use this port, set the parameters to Function value sincos
.
Data types |
|
Complex numbers support |
Yes |
Parameters
Main
#
Function —
trigonometric function
sin
| cos
| tan
| asin
| acos
| atan
| atan2
| sinh
| cosh
| tanh
| asinh
| acosh
| atanh
| sincos
Details
Sets the trigonometric function. The function name on the block icon changes according to the selected function.
Values |
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |