Engee documentation

Trigonometric Function

Applies the trigonometric function to the input signal.

trigonometric function

Description

The Trigonometric Function block performs common trigonometric functions.

Supported functions

The function to be used is specified by the Function parameter.

Function Description Mathematical expression

sin

Sine

sin(u)

cos

Cosine

cos(u)

tan

Tangent

tan(u)

asin

Arcsinus

asin(u)

acos

Arccosine

acos(u)

atan

Arctangent

atan(u)

sinh

Hyperbolic sine

sinh(u)

cosh

Hyperbolic cosine

cosh(u)

tanh

Hyperbolic tangent

tanh(u)

asinh

Hyperbolic arcsine

asinh(u)

acosh

Hyperbolic arccosine

acosh(u)

atanh

Hyperbolic arctangent

atanh(u)

sincos

Sine and cosine

acosh(u)

atan2

Tangent including sign

atanh(u)

Ports

Input

Port_1 - input signal, rad
scalar | vector | matrix

Input signal; scalar, vector or matrix. Values are considered to be expressed in radians.

Data Types: *Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Output

Port_1 - specified trigonometric function from the input signal
scalar | vector | matrix

The result of application of the specified trigonometric function to one or to one or more inputs (in radians). Each function supports:

  • Scalar operations

  • Elemental vector and matrix operations

Data types: Float64.

Parameters

Function - trigonometric function
sin (by default) | cos | tan | asin | acos | atan | atan2 | sinh | cosh | tanh | asinh | acosh | atanh | sincos | atan2

Sets the trigonometric function. The function name on the block icon changes according to the selected function.

Usage in program code

Block parameter

Operator

Value

sin | cos | tan | asin | acos | atan | atan2 | sinh | cosh | tanh | asinh | acosh | atanh | sincos | atan2

Default value

`sin `

Additional options

C code generation: Yes