Provided by: manpages-es-dev_4.21.0-2_all 

NOMBRE
tan, tanf, tanl - función tangente
BIBLIOTECA
Biblioteca Matemática (libm, -lm)
SINOPSIS
#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
DESCRIPCIÓN
Estas funciones devuelven la tangente de x, donde x está expresado en radianes.
VALOR DEVUELTO
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.
ERRORES
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
Error de dominio: x es infinito
errno is set to EDOM (but see BUGS). An invalid floating-point exception (FE_INVALID) is raised.
Range error: result overflow
An overflow floating-point exception (FE_OVERFLOW) is raised.
ATRIBUTOS
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 │
└──────────────────────────────────────────────────────────────┴────────────────────┴───────────────────┘
ESTÁNDARES
C99, POSIX.1-2001, POSIX.1-2008.
The variant returning double also conforms to SVr4, 4.3BSD.
ERRORES
Before glibc 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred.
VÉASE TAMBIÉN
acos(3), asin(3), atan(3), atan2(3), cos(3), ctan(3), sin(3)
TRADUCCIÓN
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.
Páginas de manual de Linux 6.03 5 Febrero 2023 tan(3)