TanHyp (FPScript)
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 |
Calculates a signal with the course of the curve in the interval [-3, 3]. |