Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Commit dce5e87

Browse files
committed
cleanup
1 parent e0dd5ec commit dce5e87

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ Returns the absolute value of the argument.
2828
acos :: Number -> Radians
2929
```
3030

31-
Returns the arccosine of the argument.
31+
Returns the inverse cosine of the argument.
3232

3333
#### `asin`
3434

3535
``` purescript
3636
asin :: Number -> Radians
3737
```
3838

39-
Returns the arcsine of the argument.
39+
Returns the inverse sine of the argument.
4040

4141
#### `atan`
4242

4343
``` purescript
4444
atan :: Number -> Radians
4545
```
4646

47-
Returns the arctangent of the argument.
47+
Returns the inverse tangent of the argument.
4848

4949
#### `atan2`
5050

@@ -65,7 +65,7 @@ the point `(x, y)`.
6565
ceil :: Number -> Number
6666
```
6767

68-
Returns the smallest integer greater than or equal to the argument.
68+
Returns the smallest integer not smaller than the argument.
6969

7070
#### `cos`
7171

@@ -89,7 +89,7 @@ Returns `e` exponentiated to the power of the argument.
8989
floor :: Number -> Number
9090
```
9191

92-
Returns the largest integer less than or equal to the argument.
92+
Returns the largest integer not larger than the argument.
9393

9494
#### `log`
9595

@@ -129,7 +129,7 @@ Return the first argument exponentiated to the power of the second argument.
129129
round :: Number -> Number
130130
```
131131

132-
Returns the integer nearest to the argument.
132+
Returns the integer closest to the argument.
133133

134134
#### `sin`
135135

@@ -161,63 +161,63 @@ Returns the tangent of the argument.
161161
e :: Number
162162
```
163163

164-
Euler's constant and the base of natural logarithms, approximately 2.718.
164+
The base of natural logarithms, *e*, around 2.71828.
165165

166166
#### `ln2`
167167

168168
``` purescript
169169
ln2 :: Number
170170
```
171171

172-
Natural logarithm of 2, approximately 0.693.
172+
The natural logarithm of 2, around 0.6931.
173173

174174
#### `ln10`
175175

176176
``` purescript
177177
ln10 :: Number
178178
```
179179

180-
Natural logarithm of 10, approximately 2.303.
180+
The natural logarithm of 10, around 2.3025.
181181

182182
#### `log2e`
183183

184184
``` purescript
185185
log2e :: Number
186186
```
187187

188-
Base 2 logarithm of `e`, approximately 1.443.
188+
The base 2 logarithm of `e`, around 1.4426.
189189

190190
#### `log10e`
191191

192192
``` purescript
193193
log10e :: Number
194194
```
195195

196-
Base 10 logarithm of `e`, approximately 0.434.
196+
Base 10 logarithm of `e`, around 0.43429.
197197

198198
#### `pi`
199199

200200
``` purescript
201201
pi :: Number
202202
```
203203

204-
Ratio of the circumference of a circle to its diameter, approximately 3.14159.
204+
The ratio of the circumference of a circle to its diameter, around 3.14159.
205205

206206
#### `sqrt1_2`
207207

208208
``` purescript
209209
sqrt1_2 :: Number
210210
```
211211

212-
Square root of 1/2, approximately 0.707.
212+
The Square root of one half, around 0.707107.
213213

214214
#### `sqrt2`
215215

216216
``` purescript
217217
sqrt2 :: Number
218218
```
219219

220-
Square root of 2, approximately 1.414.
220+
The square root of two, around 1.41421.
221221

222222

223223

src/Math.purs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ type Radians = Number
88
-- | Returns the absolute value of the argument.
99
foreign import abs "var abs = Math.abs;" :: Number -> Number
1010

11-
-- | Returns the arccosine of the argument.
11+
-- | Returns the inverse cosine of the argument.
1212
foreign import acos "var acos = Math.acos;" :: Number -> Radians
1313

14-
-- | Returns the arcsine of the argument.
14+
-- | Returns the inverse sine of the argument.
1515
foreign import asin "var asin = Math.asin;" :: Number -> Radians
1616

17-
-- | Returns the arctangent of the argument.
17+
-- | Returns the inverse tangent of the argument.
1818
foreign import atan "var atan = Math.atan;" :: Number -> Radians
1919

2020
-- | Four-quadrant tangent inverse. Given `y` and `x`, returns the arctangent of
@@ -30,7 +30,7 @@ foreign import atan2
3030
\ };\
3131
\}" :: Number -> Number -> Radians
3232

33-
-- | Returns the smallest integer greater than or equal to the argument.
33+
-- | Returns the smallest integer not smaller than the argument.
3434
foreign import ceil "var ceil = Math.ceil;" :: Number -> Number
3535

3636
-- | Returns the cosine of the argument.
@@ -39,7 +39,7 @@ foreign import cos "var cos = Math.cos;" :: Radians -> Number
3939
-- | Returns `e` exponentiated to the power of the argument.
4040
foreign import exp "var exp = Math.exp;" :: Number -> Number
4141

42-
-- | Returns the largest integer less than or equal to the argument.
42+
-- | Returns the largest integer not larger than the argument.
4343
foreign import floor "var floor = Math.floor;" :: Number -> Number
4444

4545
-- | Returns the natural logarithm of a number.
@@ -69,7 +69,7 @@ foreign import pow
6969
\ }\
7070
\}" :: Number -> Number -> Number
7171

72-
-- | Returns the integer nearest to the argument.
72+
-- | Returns the integer closest to the argument.
7373
foreign import round "var round = Math.round;" :: Number -> Number
7474

7575
-- | Returns the sine of the argument.
@@ -81,26 +81,26 @@ foreign import sqrt "var sqrt = Math.sqrt;" :: Number -> Number
8181
-- | Returns the tangent of the argument.
8282
foreign import tan "var tan = Math.tan;" :: Radians -> Number
8383

84-
-- | Euler's constant and the base of natural logarithms, approximately 2.718.
84+
-- | The base of natural logarithms, *e*, around 2.71828.
8585
foreign import e "var e = Math.E;" :: Number
8686

87-
-- | Natural logarithm of 2, approximately 0.693.
87+
-- | The natural logarithm of 2, around 0.6931.
8888
foreign import ln2 "var ln2 = Math.LN2;" :: Number
8989

90-
-- | Natural logarithm of 10, approximately 2.303.
90+
-- | The natural logarithm of 10, around 2.3025.
9191
foreign import ln10 "var ln10 = Math.LN10;" :: Number
9292

93-
-- | Base 2 logarithm of `e`, approximately 1.443.
93+
-- | The base 2 logarithm of `e`, around 1.4426.
9494
foreign import log2e "var log2e = Math.LOG2E;" :: Number
9595

96-
-- | Base 10 logarithm of `e`, approximately 0.434.
96+
-- | Base 10 logarithm of `e`, around 0.43429.
9797
foreign import log10e "var log10e = Math.LOG10E;" :: Number
9898

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.
100100
foreign import pi "var pi = Math.PI;" :: Number
101101

102-
-- | Square root of 1/2, approximately 0.707.
102+
-- | The Square root of one half, around 0.707107.
103103
foreign import sqrt1_2 "var sqrt1_2 = Math.SQRT1_2;" :: Number
104104

105-
-- | Square root of 2, approximately 1.414.
105+
-- | The square root of two, around 1.41421.
106106
foreign import sqrt2 "var sqrt2 = Math.SQRT2;" :: Number

0 commit comments

Comments
 (0)