cosh(3) Library Functions Manual cosh(3)

cosh, coshf, coshl - función coseno hiperbólico

Biblioteca Matemática (libm, -lm)

#include <math.h>
double cosh(double x);
float coshf(float x);
long double coshl(long double x);
Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

coshf(), coshl():

    _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
        || /* Desde glibc 2.19: */ _DEFAULT_SOURCE
        || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

Estas funciones devuelven el coseno hiperbólico de x, que está definido matemáticamente como:


cosh(x) = (exp(x) + exp(-x)) / 2

Si no sucede ningún error, estas funciones devuelven el coseno hiperbólico de x.

Si x es un NaN, NaN es devuelto.

Si x es +0 o -0, 1 es devuelto.

If x is positive infinity or negative infinity, positive infinity is returned.

If the result overflows, a range error occurs, and the functions return +HUGE_VAL, +HUGE_VALF, or +HUGE_VALL, respectively.

Consulte math_error(7) para saber cómo es posible conocer si se ha producido algún error al invocar estas funciones.

Puede ocurrir los siguientes errores

errno is set to ERANGE. An overflow floating-point exception (FE_OVERFLOW) is raised.

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
cosh(), coshf(), coshl() Seguridad del hilo Multi-hilo seguro

C11, POSIX.1-2008.

C99, POSIX.1-2001.

The variant returning double also conforms to SVr4, 4.3BSD.

In glibc 2.3.4 and earlier, an overflow floating-point (FE_OVERFLOW) exception is not raised when an overflow occurs.

acosh(3), asinh(3), atanh(3), ccos(3), sinh(3), tanh(3)

La traducción al español de esta página del manual fue creada por Sebastian Desimone <chipy@argenet.com.ar>, Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> y Marcos Fouces <marcos@debian.org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

31 Octubre 2023 Páginas de manual de Linux 6.06