@@ -8,29 +8,28 @@ type Radians = Number
8
8
-- | Returns the absolute value of the argument.
9
9
foreign import abs " var abs = Math.abs;" :: Number -> Number
10
10
11
- -- | Returns the arccosine of the argument.
11
+ -- | Returns the inverse cosine of the argument.
12
12
foreign import acos " var acos = Math.acos;" :: Number -> Radians
13
13
14
- -- | Returns the arcsine of the argument.
14
+ -- | Returns the inverse sine of the argument.
15
15
foreign import asin " var asin = Math.asin;" :: Number -> Radians
16
16
17
- -- | Returns the arctangent of the argument.
17
+ -- | Returns the inverse tangent of the argument.
18
18
foreign import atan " var atan = Math.atan;" :: Number -> Radians
19
19
20
- -- | Four-quadrant tangent inverse. Given `y` and `x`, returns the arctangent of
21
- -- | `y / x`, where the signs of both arguments are used to determine the sign
22
- -- | of the result.
20
+ -- | Four-quadrant tangent inverse. Given the arguments `y` and `x`, returns
21
+ -- | the inverse tangent of `y / x`, where the signs of both arguments are used
22
+ -- | to determine the sign of the result.
23
23
-- | If the first argument is negative, the result will be negative.
24
- -- | The result is the counterclockwise angle between the positive x axis and
25
- -- | the point `(x, y)`.
24
+ -- | The result is the angle between the positive x axis and a point `(x, y)`.
26
25
foreign import atan2
27
26
" function atan2(y){\
28
27
\ return function (x) {\
29
28
\ return Math.atan2(y, x);\
30
29
\ };\
31
30
\}" :: Number -> Number -> Radians
32
31
33
- -- | Returns the smallest integer greater than or equal to the argument.
32
+ -- | Returns the smallest integer not smaller than the argument.
34
33
foreign import ceil " var ceil = Math.ceil;" :: Number -> Number
35
34
36
35
-- | Returns the cosine of the argument.
@@ -39,7 +38,7 @@ foreign import cos "var cos = Math.cos;" :: Radians -> Number
39
38
-- | Returns `e` exponentiated to the power of the argument.
40
39
foreign import exp " var exp = Math.exp;" :: Number -> Number
41
40
42
- -- | Returns the largest integer less than or equal to the argument.
41
+ -- | Returns the largest integer not larger than the argument.
43
42
foreign import floor " var floor = Math.floor;" :: Number -> Number
44
43
45
44
-- | Returns the natural logarithm of a number.
@@ -69,7 +68,7 @@ foreign import pow
69
68
\ }\
70
69
\}" :: Number -> Number -> Number
71
70
72
- -- | Returns the integer nearest to the argument.
71
+ -- | Returns the integer closest to the argument.
73
72
foreign import round " var round = Math.round;" :: Number -> Number
74
73
75
74
-- | Returns the sine of the argument.
@@ -81,26 +80,26 @@ foreign import sqrt "var sqrt = Math.sqrt;" :: Number -> Number
81
80
-- | Returns the tangent of the argument.
82
81
foreign import tan " var tan = Math.tan;" :: Radians -> Number
83
82
84
- -- | Euler's constant and the base of natural logarithms, approximately 2.718 .
83
+ -- | The base of natural logarithms, *e*, around 2.71828 .
85
84
foreign import e " var e = Math.E;" :: Number
86
85
87
- -- | Natural logarithm of 2, approximately 0.693 .
86
+ -- | The natural logarithm of 2, around 0.6931 .
88
87
foreign import ln2 " var ln2 = Math.LN2;" :: Number
89
88
90
- -- | Natural logarithm of 10, approximately 2.303 .
89
+ -- | The natural logarithm of 10, around 2.3025 .
91
90
foreign import ln10 " var ln10 = Math.LN10;" :: Number
92
91
93
- -- | Base 2 logarithm of `e`, approximately 1.443 .
92
+ -- | The base 2 logarithm of `e`, around 1.4426 .
94
93
foreign import log2e " var log2e = Math.LOG2E;" :: Number
95
94
96
- -- | Base 10 logarithm of `e`, approximately 0.434 .
95
+ -- | Base 10 logarithm of `e`, around 0.43429 .
97
96
foreign import log10e " var log10e = Math.LOG10E;" :: Number
98
97
99
- -- | Ratio of the circumference of a circle to its diameter, approximately 3.14159.
98
+ -- | The ratio of the circumference of a circle to its diameter, around 3.14159.
100
99
foreign import pi " var pi = Math.PI;" :: Number
101
100
102
- -- | Square root of 1/2, approximately 0.707 .
101
+ -- | The Square root of one half, around 0.707107 .
103
102
foreign import sqrt1_2 " var sqrt1_2 = Math.SQRT1_2;" :: Number
104
103
105
- -- | Square root of 2, approximately 1.414 .
104
+ -- | The square root of two, around 1.41421 .
106
105
foreign import sqrt2 " var sqrt2 = Math.SQRT2;" :: Number
0 commit comments