.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, David Metcalfe .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH tan 3 "8 février 2026" "Pages du manuel de Linux 6.18" .SH NOM tan, tanf, tanl \- Fonction tangente .SH BIBLIOTHÈQUE Bibliothèque de math (\fIlibm\fP,\ \fI\-lm\fP) .SH SYNOPSIS .nf \fB#include \fP .P \fBdouble tan(double \fP\fIx\fP\fB);\fP \fBfloat tanf(float \fP\fIx\fP\fB);\fP \fBlong double tanl(long double \fP\fIx\fP\fB);\fP .fi .P .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7)) : .RE .P \fBtanf\fP(), \fBtanl\fP() : .nf _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPTION Ces fonctions renvoient la tangente de \fIx\fP, dont la valeur est fournie en radian. .SH "VALEUR RENVOYÉE" En cas de réussite, ces fonctions renvoient la tangente de \fIx\fP. .P Si \fIx\fP n’est pas un nombre, un \fBNaN\fP est renvoyé. .P Si \fIx\fP est l'infini positif ou négatif, une erreur de domaine est produite et un \fBNaN\fP est renvoyé. .P .\" I think overflow can't occur, because the closest floating-point .\" representation of pi/2 is still not close enough to pi/2 to .\" produce a large enough value to overflow. .\" Testing certainly seems to bear this out. -- mtk, Jul 08 .\" .\" POSIX.1 allows an optional underflow error; .\" glibc 2.8 doesn't do this .\" POSIX.1 an optional range error for subnormal x; .\" glibc 2.8 doesn't do this En cas de dépassement pour le résultat, une erreur d'intervalle se produit et les fonctions renvoient \fBHUGE_VAL\fP, \fBHUGE_VALF\fP ou \fBHUGE_VALL\fP, resp. avec le bon signe mathématique. .SH ERREURS Voir \fBmath_error\fP(7) pour savoir comment déterminer si une erreur s'est produite lors de l'appel d'une de ces fonctions. .P Les erreurs suivantes peuvent se produire : .TP Domain error: \f[I]x\fR is an infinity \fIerrno\fP prend la valeur \fBEDOM\fP (mais consultez la section \fBBOGUES\fP). Une exception indiquant une virgule flottante incorrecte (\fBFE_INVALID\fP) est levée. .TP Erreur de plage : débordement du résultat .\" Unable to test this case, since the best approximation of .\" pi/2 in double precision only yields a tan() value of 1.633e16. .\" .I errno .\" is set to .\" .BR ERANGE . Une exception de dépassement de virgule flottante (\fBFE_OVERFLOW\fP) est levée. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBtan\fP(), \fBtanf\fP(), \fBtanl\fP() T} Sécurité des threads MT\-Safe .TE .SH NORMES C11, POSIX.1\-2008. .SH HISTORIQUE C99, POSIX.1\-2001. .P La variante renvoyant \fIdouble\fP est également conforme à SVr4, 4.3BSD, C89. .SH BOGUES .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782 Avant la glibc 2.10, l'implémentation de la glibc ne positionnait pas \fIerrno\fP à \fBEDOM\fP quand une erreur de domaine se produisait. .SH "VOIR AUSSI" \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBatan2\fP(3), \fBcos\fP(3), \fBctan\fP(3), \fBsin\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Cédric Boutillier . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .