@@ -10,7 +10,7 @@ and import it with:
10
10
import math
11
11
```
12
12
13
- ## Mathematical constants
13
+ ## Mathematical Constants
14
14
15
15
### num math.pi()
16
16
@@ -57,7 +57,7 @@ kaos> math.nan()
57
57
nan
58
58
```
59
59
60
- ## Trigonometric functions
60
+ ## Trigonometric Functions
61
61
62
62
### num math.cos(num x)
63
63
@@ -122,7 +122,7 @@ kaos> math.atan2(-10.0, 10.0)
122
122
135
123
123
```
124
124
125
- ## Hyperbolic functions
125
+ ## Hyperbolic Functions
126
126
127
127
### num math.cosh(num x)
128
128
@@ -178,7 +178,7 @@ kaos> math.atanh(0.761594)
178
178
1
179
179
```
180
180
181
- ## Exponential and logarithmic functions
181
+ ## Exponential and Logarithmic Functions
182
182
183
183
### num math.exp(num x)
184
184
@@ -189,7 +189,7 @@ kaos> math.exp(5)
189
189
148.413
190
190
```
191
191
192
- ### dict math.frexp(num x)
192
+ ### num dict math.frexp(num x)
193
193
194
194
Returns the mantissa and exponent of ` x ` : $x = {mantissa} \times 2^{exponent}$
195
195
@@ -264,7 +264,7 @@ kaos> math.log10(1000)
264
264
3
265
265
```
266
266
267
- ### dict math.modf(num x)
267
+ ### num dict math.modf(num x)
268
268
269
269
Returns the integer and fractional parts of ` x ` .
270
270
@@ -285,7 +285,7 @@ kaos> math.expm1(1.0)
285
285
1.71828
286
286
```
287
287
288
- ## Power functions
288
+ ## Power Functions
289
289
290
290
### num math.pow(num x, num y)
291
291
@@ -323,7 +323,7 @@ kaos> math.hypot(3.0, 4.0)
323
323
5
324
324
```
325
325
326
- ## Error and gamma functions
326
+ ## Error and Gamma Functions
327
327
328
328
### num math.erf(num x)
329
329
@@ -363,7 +363,7 @@ kaos> math.lgamma(0.5)
363
363
0.572365
364
364
```
365
365
366
- ## Rounding and remainder functions
366
+ ## Rounding and Remainder Functions
367
367
368
368
### num math.ceil(num x)
369
369
@@ -436,7 +436,7 @@ kaos> math.remainder(18.5, 4.2)
436
436
1.7
437
437
```
438
438
439
- ### dict math.remquo(num x, num y)
439
+ ### num dict math.remquo(num x, num y)
440
440
441
441
Returns the same as ` remainder() ` , but also returns the ` quotient ` .
442
442
@@ -448,7 +448,7 @@ kaos> remquo['quotient']
448
448
2
449
449
```
450
450
451
- ## Floating-point manipulation functions
451
+ ## Floating-point Manipulation Functions
452
452
453
453
### num math.copysign(num x, num y)
454
454
@@ -470,7 +470,7 @@ kaos> math.nextafter(0.0, -1.0)
470
470
-3.6452e-4951
471
471
```
472
472
473
- ## Other functions
473
+ ## Other Functions
474
474
475
475
### num math.abs(num x)
476
476
@@ -494,7 +494,7 @@ kaos> math.factorial(-5)
494
494
-1
495
495
```
496
496
497
- ## Boolean functions
497
+ ## Boolean Functions
498
498
499
499
### bool math.is_finite(num x)
500
500
0 commit comments