sin(3) Library Functions Manual sin(3) sin, sinf, sinl - LIBRARY Math library (libm, -lm) #include double sin(double x); float sinf(float x); long double sinl(long double x); glibc (. feature_test_macros(7)): sinf(), sinl(): _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. math_error(7), , . : : x errno EDOM ( . ). (FE_INVALID). attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |sin(), sinf(), sinl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. C99, POSIX.1-2001. , double, SVr4, 4.3BSD, C89. Before glibc 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred. . acos(3), asin(3), atan(3), atan2(3), cos(3), csin(3), sincos(3), tan(3) Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . sin(3)