tan(3) Library Functions Manual tan(3) tan, tanf, tanl - (libm, -lm) #include double tan(double x); float tanf(float x); long double tanl(long double x); glibc (. feature_test_macros(7)): tanf(), tanl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE x, x . x. x NaN, NaN. x , , NaN. , , , HUGE_VAL, HUGE_VALF HUGE_VALL , . math_error(7), , . : Domain error: x is an infinity errno EDOM ( . ). (FE_INVALID). : (FE_OVERFLOW). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |tan(), tanf(), tanl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. C99, POSIX.1-2001. , double, SVr4, 4.3BSD, C89. glibc 2.10 glibc errno EDOM. acos(3), asin(3), atan(3), atan2(3), cos(3), ctan(3), sin(3) () Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . tan(3)