Przestrzenie nazw
Warianty
Działania

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

Z cppreference.com
< cpp‎ | numeric‎ | math
m (r2.7.3) (Robot dodał en, fr, ja, pt, zh)
m (r2.7.3) (Robot dodał de, es, it, ru)
 
Linia 18: Linia 18:
 
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]]
  
 +
 
[[en:cpp/numeric/math/tan]]
 
[[en:cpp/numeric/math/tan]]
 +
 
[[fr:cpp/numeric/math/tan]]
 
[[fr:cpp/numeric/math/tan]]
 +
 
[[ja:cpp/numeric/math/tan]]
 
[[ja:cpp/numeric/math/tan]]
 
[[pt:cpp/numeric/math/tan]]
 
[[pt:cpp/numeric/math/tan]]
 +
 
[[zh:cpp/numeric/math/tan]]
 
[[zh:cpp/numeric/math/tan]]

Aktualna wersja na dzień 22:18, 2 lis 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