tan(3) Library Functions Manual tan(3)

tan, tanf, tanl - función tangente

Biblioteca Matemática (libm, -lm)

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

tanf(), tanl():

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

Estas funciones devuelven la tangente de x, donde x está expresado en radianes.

Si no sucede ningún error, estas funciones devuelven la tangente de x.

Si x es un NaN, NaN es devuelto.

If x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned.

If the correct result would overflow, a range error occurs, and the functions return HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively, with the mathematically correct sign.

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 EDOM (but see BUGS). An invalid floating-point exception (FE_INVALID) is raised.
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
tan(), tanf(), tanl() Seguridad del hilo Multi-hilo seguro

C11, POSIX.1-2008.

C99, POSIX.1-2001.

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

Before glibc 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred.

acos(3), asin(3), atan(3), atan2(3), cos(3), ctan(3), sin(3)

La traducción al español de esta página del manual fue creada por 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