@@ -8,13 +8,13 @@ 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
20
-- | Four-quadrant tangent inverse. Given `y` and `x`, returns the arctangent of
@@ -30,7 +30,7 @@ foreign import atan2
30
30
\ };\
31
31
\}" :: Number -> Number -> Radians
32
32
33
- -- | Returns the smallest integer greater than or equal to the argument.
33
+ -- | Returns the smallest integer not smaller than the argument.
34
34
foreign import ceil " var ceil = Math.ceil;" :: Number -> Number
35
35
36
36
-- | Returns the cosine of the argument.
@@ -39,7 +39,7 @@ foreign import cos "var cos = Math.cos;" :: Radians -> Number
39
39
-- | Returns `e` exponentiated to the power of the argument.
40
40
foreign import exp " var exp = Math.exp;" :: Number -> Number
41
41
42
- -- | Returns the largest integer less than or equal to the argument.
42
+ -- | Returns the largest integer not larger than the argument.
43
43
foreign import floor " var floor = Math.floor;" :: Number -> Number
44
44
45
45
-- | Returns the natural logarithm of a number.
@@ -69,7 +69,7 @@ foreign import pow
69
69
\ }\
70
70
\}" :: Number -> Number -> Number
71
71
72
- -- | Returns the integer nearest to the argument.
72
+ -- | Returns the integer closest to the argument.
73
73
foreign import round " var round = Math.round;" :: Number -> Number
74
74
75
75
-- | Returns the sine of the argument.
@@ -81,26 +81,26 @@ foreign import sqrt "var sqrt = Math.sqrt;" :: Number -> Number
81
81
-- | Returns the tangent of the argument.
82
82
foreign import tan " var tan = Math.tan;" :: Radians -> Number
83
83
84
- -- | Euler's constant and the base of natural logarithms, approximately 2.718 .
84
+ -- | The base of natural logarithms, *e*, around 2.71828 .
85
85
foreign import e " var e = Math.E;" :: Number
86
86
87
- -- | Natural logarithm of 2, approximately 0.693 .
87
+ -- | The natural logarithm of 2, around 0.6931 .
88
88
foreign import ln2 " var ln2 = Math.LN2;" :: Number
89
89
90
- -- | Natural logarithm of 10, approximately 2.303 .
90
+ -- | The natural logarithm of 10, around 2.3025 .
91
91
foreign import ln10 " var ln10 = Math.LN10;" :: Number
92
92
93
- -- | Base 2 logarithm of `e`, approximately 1.443 .
93
+ -- | The base 2 logarithm of `e`, around 1.4426 .
94
94
foreign import log2e " var log2e = Math.LOG2E;" :: Number
95
95
96
- -- | Base 10 logarithm of `e`, approximately 0.434 .
96
+ -- | Base 10 logarithm of `e`, around 0.43429 .
97
97
foreign import log10e " var log10e = Math.LOG10E;" :: Number
98
98
99
- -- | Ratio of the circumference of a circle to its diameter, approximately 3.14159.
99
+ -- | The ratio of the circumference of a circle to its diameter, around 3.14159.
100
100
foreign import pi " var pi = Math.PI;" :: Number
101
101
102
- -- | Square root of 1/2, approximately 0.707 .
102
+ -- | The Square root of one half, around 0.707107 .
103
103
foreign import sqrt1_2 " var sqrt1_2 = Math.SQRT1_2;" :: Number
104
104
105
- -- | Square root of 2, approximately 1.414 .
105
+ -- | The square root of two, around 1.41421 .
106
106
foreign import sqrt2 " var sqrt2 = Math.SQRT2;" :: Number
0 commit comments