Skip to content

Trig Function ​

Applies a trigonometric function to a double input: sin, cos, tan, asin, acos, atan, or atan2(y, x), which adds a second input x at the bottom and returns the full-circle angle of the point (x, y). Angle unit sets whether angles are in radians or degrees: the input of sin, cos and tan, and the output of the inverse functions. asin and acos of a value outside [−1, 1] give NaN.

Category: Math

Ports ​

PortKindSignalNotes
inControl inputReal
in_bControl inputRealShown when Function is atan2
outControl outputReal

Parameters ​

ParameterTypeDefaultUnitsDescriptionID
FunctionChoice: sin / cos / tan / asin / acos / atan / atan2sin—The function applied. atan2 takes y on the left input and x on the bottom input.op
Angle unitChoice: rad / degrad—Radians or degrees, for the input of sin / cos / tan and the output of asin / acos / atan / atan2.angle_unit

In the course ​