Skip to content

Commit e4fbcd5

Browse files
committed
Update the defineFunction() calls according to the recent change in the API and update README.md
1 parent 1a5a50c commit e4fbcd5

File tree

4 files changed

+225
-117
lines changed

4 files changed

+225
-117
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and import it with:
1010
import math
1111
```
1212

13-
## Mathematical constants
13+
## Mathematical Constants
1414

1515
### num math.pi()
1616

@@ -57,7 +57,7 @@ kaos> math.nan()
5757
nan
5858
```
5959

60-
## Trigonometric functions
60+
## Trigonometric Functions
6161

6262
### num math.cos(num x)
6363

@@ -122,7 +122,7 @@ kaos> math.atan2(-10.0, 10.0)
122122
135
123123
```
124124

125-
## Hyperbolic functions
125+
## Hyperbolic Functions
126126

127127
### num math.cosh(num x)
128128

@@ -178,7 +178,7 @@ kaos> math.atanh(0.761594)
178178
1
179179
```
180180

181-
## Exponential and logarithmic functions
181+
## Exponential and Logarithmic Functions
182182

183183
### num math.exp(num x)
184184

@@ -189,7 +189,7 @@ kaos> math.exp(5)
189189
148.413
190190
```
191191

192-
### dict math.frexp(num x)
192+
### num dict math.frexp(num x)
193193

194194
Returns the mantissa and exponent of `x`: $x = {mantissa} \times 2^{exponent}$
195195

@@ -264,7 +264,7 @@ kaos> math.log10(1000)
264264
3
265265
```
266266

267-
### dict math.modf(num x)
267+
### num dict math.modf(num x)
268268

269269
Returns the integer and fractional parts of `x`.
270270

@@ -285,7 +285,7 @@ kaos> math.expm1(1.0)
285285
1.71828
286286
```
287287

288-
## Power functions
288+
## Power Functions
289289

290290
### num math.pow(num x, num y)
291291

@@ -323,7 +323,7 @@ kaos> math.hypot(3.0, 4.0)
323323
5
324324
```
325325

326-
## Error and gamma functions
326+
## Error and Gamma Functions
327327

328328
### num math.erf(num x)
329329

@@ -363,7 +363,7 @@ kaos> math.lgamma(0.5)
363363
0.572365
364364
```
365365

366-
## Rounding and remainder functions
366+
## Rounding and Remainder Functions
367367

368368
### num math.ceil(num x)
369369

@@ -436,7 +436,7 @@ kaos> math.remainder(18.5, 4.2)
436436
1.7
437437
```
438438

439-
### dict math.remquo(num x, num y)
439+
### num dict math.remquo(num x, num y)
440440

441441
Returns the same as `remainder()`, but also returns the `quotient`.
442442

@@ -448,7 +448,7 @@ kaos> remquo['quotient']
448448
2
449449
```
450450

451-
## Floating-point manipulation functions
451+
## Floating-point Manipulation Functions
452452

453453
### num math.copysign(num x, num y)
454454

@@ -470,7 +470,7 @@ kaos> math.nextafter(0.0, -1.0)
470470
-3.6452e-4951
471471
```
472472

473-
## Other functions
473+
## Other Functions
474474

475475
### num math.abs(num x)
476476

@@ -494,7 +494,7 @@ kaos> math.factorial(-5)
494494
-1
495495
```
496496

497-
## Boolean functions
497+
## Boolean Functions
498498

499499
### bool math.is_finite(num x)
500500

0 commit comments

Comments
 (0)