tan

De cppreference.com.
Aller à : Navigation, rechercher

Syntaxe :

    #include <cmath>
    double tan (double arg);

La fonction tan() renvoie la tangente de l'argument arg, où arg est exprimé en radians. Si arg est infini, tan() va renvoyer NAN et lever une exception de type virgule flottante.

Le C++ fournit également les implémentations suivantes :

    #include <cmath>
    float tan (float arg); // identique à tanf() en C99
    long double tan (long double arg); // identique à tanl() en C99

Sujets connexes : acos, asin, atan, atan2, cos, cosh, sin, sinh, tanh

Outils personnels
Espaces de noms
Variantes
Actions
Navigation
Boîte à outils
Autres langues