# Funciones trigonométricas e hiperbólicas

En esta sección se describen funciones para realizar operaciones trigonométricas e hiperbólicas. En todas las funciones, los argumentos son expresiones que devuelven ángulos medidos en radianes, donde x debe interpretarse como un valor real.

Todos los ángulos se miden en radianes.

Todas las funciones pueden utilizarse tanto en el script de carga como en las expresiones de gráficos.

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

#### cos

Coseno de x. El resultado es un número entre -1 y 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

Coseno inverso de x. La función solo se define si -1≤x≤1. El resultado es un número entre 0 y 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

Seno de x. El resultado es un número entre -1 y 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

Seno inverso de x. La función solo se define si -1≤x≤1. El resultado es un número entre - p/2 y 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

Tangente de x. El resultado es un número real.

[](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

Tangente inversa de x. El resultado es un número entre - p/2 y 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

Generalización bidimensional de la función tangente inversa. Devuelve el ángulo entre el origen y el punto representado por las coordenadas x e y. El resultado es un número entre - p y + 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

Coseno hiperbólico de x. El resultado es un número real positivo.

[](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

Seno hiperbólico de x. El resultado es un número real.

[](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

Tangente hiperbólico de x. El resultado es un número real.

[](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 )

Ejemplos:

El siguiente código de script carga una tabla de muestra y a continuación carga una tabla que contiene las operaciones trigonométricas e hiperbólicas sobre los valores.

```
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;
```