TanHyp (FPScript)

21.09.2021

Calculates the hyperbolic tangent of a number.

Syntax

TanHyp(Number)

 

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

Part

Description

Number

The real or complex number for which the hyperbolic tangent is to be calculated.

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

Remarks

The result has the same structure as the argument Number. 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 hyperbolic 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 Number is complex, then the complex hyperbolic tangent function is calculated, which can be defined as follows:

(Exp(Number) - Exp(-Number)) / (Exp(Number) + Exp(-Number))

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

TanHyp(0)

Results in 0.

Dim x
x = Series(-3, 3, 0.1)
Signal(TanHyp(x), x)
 

Calculates a signal with the course of the curve in the interval [-3, 3].

See Also

ArcCos Function

ArcSin Function

ArcTan Function

ArcTan2 Function

Cos Function

CosHyp Function

Sin Function

SinHyp Function

Tan Function

Share article or send as email:

You might be interested in these articles