Rev 1906 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3362 | Serge | 1 | |
2 | /* |
||
3 | * ==================================================== |
||
4 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. |
||
5 | * |
||
6 | * Developed at SunPro, a Sun Microsystems, Inc. business. |
||
7 | * Permission to use, copy, modify, and distribute this |
||
8 | * software is freely granted, provided that this notice |
||
9 | * is preserved. |
||
10 | * ==================================================== |
||
11 | * |
||
12 | */ |
||
13 | |||
14 | |||
15 | FUNCTION |
||
16 | < |
||
17 | |||
18 | |||
19 | atan2 |
||
20 | INDEX |
||
21 | atan2f |
||
22 | |||
23 | |||
24 | #include |
||
25 | double atan2(double <[y]>,double <[x]>); |
||
26 | float atan2f(float <[y]>,float <[x]>); |
||
27 | |||
28 | |||
29 | #include |
||
30 | double atan2(<[y]>,<[x]>); |
||
31 | double <[y]>; |
||
32 | double <[x]>; |
||
33 | |||
34 | |||
35 | float <[y]>; |
||
36 | float <[x]>; |
||
37 | |||
38 | |||
39 | |||
40 | |||
41 | < |
||
42 | @ifnottex |
||
43 | pi/2 or -pi/2 |
||
44 | @end ifnottex |
||
45 | @tex |
||
46 | $\pi/2$ or $-\pi/2$ |
||
47 | @end tex |
||
48 | (that is, when <[x]> is near 0). |
||
49 | |||
50 | |||
51 | < |
||
52 | |||
53 | |||
54 | < |
||
55 | @ifnottex |
||
56 | -pi to pi. |
||
57 | @end ifnottex |
||
58 | @tex |
||
59 | $-\pi$ to $\pi$. |
||
60 | @end tex |
||
61 | |||
62 | |||
63 | |||
64 | |||
65 | < |
||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | * wrapper atan2(y,x) |
||
72 | */ |
||
73 | |||
74 | |||
75 | #include |
||
76 | |||
77 | |||
78 | |||
79 | |||
80 | double atan2(double y, double x) /* wrapper atan2 */ |
||
81 | #else |
||
82 | double atan2(y,x) /* wrapper atan2 */ |
||
83 | double y,x; |
||
84 | #endif |
||
85 | { |
||
86 | return __ieee754_atan2(y,x); |
||
87 | } |
||
88 | |||
89 | |||
90 |