tan, tanf, tanl
From cppreference.com
Defined in header <math.h>
|
||
float tanf( float arg ); |
(1) | (since C99) |
double tan( double arg ); |
(2) | |
long double tanl( long double arg ); |
(3) | (since C99) |
_Decimal32 tand32( _Decimal32 arg ); |
(4) | (since C23) |
_Decimal64 tand64( _Decimal64 arg ); |
(5) | (since C23) |
_Decimal128 tand128( _Decimal128 arg ); |
(6) | (since C23) |
Defined in header <tgmath.h>
|
||
#define tan( arg ) |
(7) | (since C99) |
1-6) Computes the tangent of arg (measured in radians).
7) Type-generic macro: If the argument has type long double, (3) (
tanl
) is called. Otherwise, if the argument has integer type or the type double, (2) (tan
) is called. Otherwise, (1) (tanf
) is called. If the argument is complex, then the macro invokes the corresponding complex function (ctanf, ctan, ctanl).
The functions (4-6) are declared if and only if the implementation predefines |
(since C23) |
Contents |