Przestrzenie nazw
Warianty
Działania

cpp/numeric/math/tan: Różnice pomiędzy wersjami

Z cppreference.com
< cpp‎ | numeric‎ | math
m (1 wersja: Import from Dokuwiki)
m (r2.7.3) (Robot dodał en, fr, ja, pt, zh)
Linia 17: Linia 17:
  
 
Powiązane tematy: [[cpp/numeric/math/acos | acos]], [[cpp/numeric/math/asin | asin]], [[cpp/numeric/math/atan | atan]], [[cpp/numeric/math/atan2 | atan2]], [[cpp/numeric/math/cos | cos]], [[cpp/numeric/math/cosh | cosh]], [[cpp/numeric/math/sin | sin]], [[cpp/numeric/math/sinh | sinh]], [[cpp/numeric/math/tanh | tanh]]
 
Powiązane tematy: [[cpp/numeric/math/acos | acos]], [[cpp/numeric/math/asin | asin]], [[cpp/numeric/math/atan | atan]], [[cpp/numeric/math/atan2 | atan2]], [[cpp/numeric/math/cos | cos]], [[cpp/numeric/math/cosh | cosh]], [[cpp/numeric/math/sin | sin]], [[cpp/numeric/math/sinh | sinh]], [[cpp/numeric/math/tanh | tanh]]
 +
 +
 +
 +
 +
 +

Wersja z 16:51, 4 maj 2012

Syntax:

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

Funkcja tan() zwraca wartość tangesa z arg, gdzie arg jest podany w radianach. Jeśli arg jest nieskończonością, to tan() zwróci NAN i wywoła wyjątek floating-point exception.

C++ dostarcza przeciążone wersje funkcji:

    #include <cmath>
    float tan( float arg ); // to samo co tanf() w C99
    long double tan( long double arg ); // to samo co tanl() w C99

Powiązane tematy: acos, asin, atan, atan2, cos, cosh, sin, sinh, tanh