TrigFunc

This block performs a trigonometric function chosen in a list of available functions. The function is applied to each entry of the input.

    TrigFunc

Library

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

TrigFunc_0

NameLabelDescriptionData TypeValid Values

func

Function

String

'sin'
'cos'
'tan'
'asin'
'acos'
'atan'
'sinh'
'cosh'
'tanh'
'asinh'
'acosh'
'atanh'

externalActivation

External activation

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

explicit

input

1

Port 3

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also