1sin(3M)                 Mathematical Library Functions                 sin(3M)
2
3
4

NAME

6       sin, sinf, sinl - sine function
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <math.h>
11
12       double sin(double x);
13
14
15       float sinf(float x);
16
17
18       long double sinl(long double x);
19
20

DESCRIPTION

22       These  functions  compute the sine of its argument x, measured in radi‐
23       ans.
24

RETURN VALUES

26       Upon successful completion, these functions return the sine of x.
27
28
29       If x is NaN, a NaN is returned.
30
31
32       If x is ±0, x is returned.
33
34
35       If x is ±Inf, a domain error occurs and a NaN is returned.
36

ERRORS

38       These functions will fail if:
39
40       Domain Error    The x argument is ±Inf.
41
42                       If   the   integer   expression   (math_errhandling   &
43                       MATH_ERREXCEPT) is non-zero, then the invalid floating-
44                       point exception is raised.
45
46

USAGE

48       An application wanting to check for exceptions should  call  feclearex‐
49       cept(FE_ALL_EXCEPT)  before  calling  these  functions.  On  return, if
50       fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is
51       non-zero,  an  exception  has been raised. An application should either
52       examine the return value or check the floating point exception flags to
53       detect exceptions.
54

ATTRIBUTES

56       See attributes(5) for descriptions of the following attributes:
57
58
59
60
61       ┌─────────────────────────────┬─────────────────────────────┐
62       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │Interface Stability          │Standard                     │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │MT-Level                     │MT-Safe                      │
67       └─────────────────────────────┴─────────────────────────────┘
68

SEE ALSO

70       asin(3M),      feclearexcept(3M),      fetestexcept(3M),     isnan(3M),
71       math.h(3HEAD), attributes(5), standards(5)
72
73
74
75SunOS 5.11                        12 Jul 2006                          sin(3M)
Impressum