# Trigonometric and hyperbolic functions

This section describes functions for performing trigonometric and hyperbolic operations. In all of the functions, the arguments are expressions resolving to angles measured in radians, where x should be interpreted as a real number.

All angles are measured in radians.

All functions can be used in both the load script and in chart expressions.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### cos

Cosine of x. The result is a number between -1 and 1.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)cos( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### acos

Inverse cosine of x. The function is only defined if -1≤x≤1. The result is a number between 0 and p.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)acos( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### sin

Sine of x. The result is a number between -1 and 1.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)sin( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### asin

Inverse sine of x. The function is only defined if -1≤x≤1. The result is a number between - p/2 and p/2.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)asin( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### tan

Tangent of x. The result is a real number.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)tan( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### atan

Inverse tangent of x. The result is a number between - p/2 and p/2.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)atan( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### atan2

Two-dimensional generalization of the inverse tangent function. Returns the angle between the origin and the point represented by the coordinates x and y. The result is a number between - p and + p.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)atan2( y,x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### cosh

Hyperbolic cosine of x. The result is a positive real number.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)cosh( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### sinh

Hyperbolic sine of x. The result is a real number.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)sinh( x )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)

#### tanh

Hyperbolic tangent of x. The result is a real number.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/TrigonometricAndHyperbolicFunctions/trigonometric-hyperbolic-functions.htm)tanh( x )

Examples:

The following script code loads a sample table, and then loads a table containing the calculated trigonometric and hyperbolic operations on the values.

```
SampleData:
LOAD * Inline
[Value
-1
0
1];

Results:
Load *, 
cos(Value),
acos(Value),
sin(Value),
asin(Value),
tan(Value),
atan(Value),
atan2(Value, Value),
cosh(Value),
sinh(Value),
tanh(Value)
RESIDENT SampleData;

Drop Table SampleData;
```