Tan (FPScript)

21.09.2021

Calculates the tangent of an angle.

Syntax

Tan(Angle)

 

The syntax of the Tan function consists of the following parts:

Part

Description

Angle

The angle in radians.

All data structures are allowed. All numeric data types are permitted.

Remarks

The result has the same structure as the argument Angle. The calculation is done element by element where appropriate.

The result has the unit 1, if Angle has a unit. Otherwise, it has no unit.

The real tangent function is calculated for a real argument. The result is always of the 64-bit floating point value data type. The following illustration shows the course of the function:

If Angle is complex, then the complex tangent function is calculated, which can be defined as follows:

i * (Exp(-i * Angle) - Exp(i * Angle)) / (Exp(-i * Angle) + Exp(i * Angle)) with the imaginary unit i = (0, 1).

The result is always of the complex 64-bit floating point value data type. The following illustration shows the course of the absolute value of the function:

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro Basic, Professional, Developer Suite

Examples

Tan(0)

Results in 0.

Tan(PI)

Results in 0.

Dim x
x = Series(0, 2 * PI, 0.1)
Signal(Tan(x), x)
 

Calculates a signal with the course of the curve in the interval [0, 2π].

See Also

ArcCos Function

ArcSin Function

ArcTan Function

ArcTan2 Function

Cos Function

CosHyp Function

Sin Function

SinHyp Function

Tan Function

TanHyp Function

Share article or send as email:

You might be interested in these articles