@@ -8,29 +8,28 @@ type Radians = Number
88-- | Returns the absolute value of the argument.
99foreign import abs " var abs = Math.abs;" :: Number -> Number
1010
11- -- | Returns the arccosine of the argument.
11+ -- | Returns the inverse cosine of the argument.
1212foreign import acos " var acos = Math.acos;" :: Number -> Radians
1313
14- -- | Returns the arcsine of the argument.
14+ -- | Returns the inverse sine of the argument.
1515foreign import asin " var asin = Math.asin;" :: Number -> Radians
1616
17- -- | Returns the arctangent of the argument.
17+ -- | Returns the inverse tangent of the argument.
1818foreign import atan " var atan = Math.atan;" :: Number -> Radians
1919
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.
2323-- | 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)`.
2625foreign import atan2
2726 " function atan2(y){\
2827 \ return function (x) {\
2928 \ return Math.atan2(y, x);\
3029 \ };\
3130 \}" :: Number -> Number -> Radians
3231
33- -- | Returns the smallest integer greater than or equal to the argument.
32+ -- | Returns the smallest integer not smaller than the argument.
3433foreign import ceil " var ceil = Math.ceil;" :: Number -> Number
3534
3635-- | Returns the cosine of the argument.
@@ -39,7 +38,7 @@ foreign import cos "var cos = Math.cos;" :: Radians -> Number
3938-- | Returns `e` exponentiated to the power of the argument.
4039foreign import exp " var exp = Math.exp;" :: Number -> Number
4140
42- -- | Returns the largest integer less than or equal to the argument.
41+ -- | Returns the largest integer not larger than the argument.
4342foreign import floor " var floor = Math.floor;" :: Number -> Number
4443
4544-- | Returns the natural logarithm of a number.
@@ -69,7 +68,7 @@ foreign import pow
6968 \ }\
7069 \}" :: Number -> Number -> Number
7170
72- -- | Returns the integer nearest to the argument.
71+ -- | Returns the integer closest to the argument.
7372foreign import round " var round = Math.round;" :: Number -> Number
7473
7574-- | Returns the sine of the argument.
@@ -81,26 +80,26 @@ foreign import sqrt "var sqrt = Math.sqrt;" :: Number -> Number
8180-- | Returns the tangent of the argument.
8281foreign import tan " var tan = Math.tan;" :: Radians -> Number
8382
84- -- | Euler's constant and the base of natural logarithms, approximately 2.718 .
83+ -- | The base of natural logarithms, *e*, around 2.71828 .
8584foreign import e " var e = Math.E;" :: Number
8685
87- -- | Natural logarithm of 2, approximately 0.693 .
86+ -- | The natural logarithm of 2, around 0.6931 .
8887foreign import ln2 " var ln2 = Math.LN2;" :: Number
8988
90- -- | Natural logarithm of 10, approximately 2.303 .
89+ -- | The natural logarithm of 10, around 2.3025 .
9190foreign import ln10 " var ln10 = Math.LN10;" :: Number
9291
93- -- | Base 2 logarithm of `e`, approximately 1.443 .
92+ -- | The base 2 logarithm of `e`, around 1.4426 .
9493foreign import log2e " var log2e = Math.LOG2E;" :: Number
9594
96- -- | Base 10 logarithm of `e`, approximately 0.434 .
95+ -- | Base 10 logarithm of `e`, around 0.43429 .
9796foreign import log10e " var log10e = Math.LOG10E;" :: Number
9897
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.
10099foreign import pi " var pi = Math.PI;" :: Number
101100
102- -- | Square root of 1/2, approximately 0.707 .
101+ -- | The Square root of one half, around 0.707107 .
103102foreign import sqrt1_2 " var sqrt1_2 = Math.SQRT1_2;" :: Number
104103
105- -- | Square root of 2, approximately 1.414 .
104+ -- | The square root of two, around 1.41421 .
106105foreign import sqrt2 " var sqrt2 = Math.SQRT2;" :: Number
0 commit comments