added return values to all math function examples

pull/87/head
Scott Anderson 2019-03-13 16:01:36 -05:00
parent 056748c32e
commit 3fe838f600
56 changed files with 119 additions and 7 deletions

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.acosh(x: 1.22)
// Returns 0.6517292837263385
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.asin(x: 0.22)
// Returns 0.22181447049679442
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.asinh(x: 3.14)
// Returns 1.8618125572133835
```
## Parameters

View File

@ -15,7 +15,9 @@ _**Output data type:** Float_
```js
import "math"
math.atan( EXAMPLE )
math.atan(x: 3.14)
// Returns 1.262480664599468
```
## Parameters

View File

@ -17,6 +17,8 @@ _**Output data type:** Float_
import "math"
math.atan2(y: 1.22, x: 3.14)
// Returns 0.3705838802763881
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.atanh(x: 0.22)
// Returns 0.22365610902183242
```
## Parameters

View File

@ -15,7 +15,9 @@ _**Output data type:** Float_
```js
import "math"
math.cbrt(x: 1728)
math.cbrt(x: 1728.0)
// Returns 12.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.ceil(x: 3.14)
// Returns 4.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.copysign(x: 1.0, y: 2.0)
// Returns 1.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.cos(x: 3.14)
// Returns -0.9999987317275396
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.cosh(x: 1.22)
// Returns 1.8412089502726743
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.dim(x: 12.2, y: 8.1)
// Returns 4.1
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.erf(x: 22.6)
// Returns 1.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.erfc(x: 22.6)
// Returns 3.7726189138490583e-224
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.erfcinv(x: 0.42345)
// Returns 0.5660037715858239
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.erfinv(x: 0.22)
// Returns 0.19750838337227364
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.exp(x: 21.0)
// Returns 1.3188157344832146e+09
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.exp2(x: 21.0)
// Returns 2.097152e+06
```
## Parameters

View File

@ -18,7 +18,9 @@ _**Output data type:** Float_
```js
import "math"
math.expm1( EXAMPLE )
math.expm1(x: 1.22)
// Returns 2.3871877336213343
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** UInteger_
import "math"
math.float64bits(f: 1234.56)
// Returns 4653144467747100426
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.floor(x: 1.22)
// Returns 1.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.gamma(x: 2.12)
// Returns 1.056821007887572
```
## Parameters

View File

@ -19,6 +19,8 @@ _**Output data type:** Float_
import "math"
math.hypot(p: 2.0, q: 5.0)
// Returns 5.385164807134505
```
## Parameters

View File

@ -15,7 +15,9 @@ _**Output data type:** Integer_
```js
import "math"
math.ilogb(x: 1.23)
math.ilogb(x: 123.45)
// Returns 6.0
```
## Parameters

View File

@ -20,6 +20,8 @@ _**Output data type:** Boolean_
import "math"
math.isInf(f: 2.12, sign: 3)
// Returns false
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Boolean_
import "math"
math.isNaN(f: 12.345)
// Returns false
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.j0(x: 1.23)
// Returns 0.656070571706025
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.j1(x: 1.23)
// Returns 0.5058005726280961
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.jn(n: 2, x: 1.23)
// Returns 0.16636938378681407
```
## Parameters

View File

@ -17,6 +17,8 @@ _**Output data type:** Float_
import "math"
math.ldexp(frac: 0.5, exp: 6)
// Returns 32.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.log(x: 3.14)
// Returns 1.144222799920162
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.log10(x: 3.14)
// Returns 0.4969296480732149
```
## Parameters

View File

@ -19,6 +19,8 @@ _**Output data type:** Float_
import "math"
math.log1p(x: 0.56)
// Returns 0.44468582126144574
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.log2(x: 3.14)
// Returns 1.6507645591169022
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.logb(x: 3.14)
// Returns 1.0
```
## Parameters

View File

@ -18,6 +18,8 @@ _**Output data type:** Float_
import "math"
math.m_inf(sign: 1)
// Returns +Inf
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.m_max(x: 1.23, y: 4.56)
// Returns 4.56
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.m_min(x: 1.23, y: 4.56)
// Returns 1.23
```
## Parameters

View File

@ -19,6 +19,8 @@ _**Output data type:** Float_
import "math"
math.mod(x: 1.23, y: 4.56)
// Returns 1.23
```
## Parameters

View File

@ -10,10 +10,10 @@ weight: 301
The `math.NaN()` function returns an IEEE 754 “not-a-number” value.
_**Output data type:** Float_
```js
import "math"
math.NaN()
// Returns NaN
```

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.nextafter(x: 1.23, y: 4.56)
// Returns 1.2300000000000002
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.pow(x: 2.0, y: 3.0)
// Returns 8.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.pow10(n: 3)
// Returns 1000
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.remainder(x: 21.0, y: 4.0)
// Returns 1.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.round(x: 2.12)
// Returns 2.0
```
## Parameters

View File

@ -16,6 +16,10 @@ _**Output data type:** Float_
import "math"
math.roundtoeven(x: 3.14)
// Returns 3.0
math.roundtoeven(x: 3.5)
// Returns 4.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Boolean_
import "math"
math.signbit(x: -1.2)
// Returns true
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.sin(x: 3.14)
// Returns 0.0015926529164868282
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.sinh(x: 1.23)
// Returns 1.564468479304407
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.sqrt(x: 4.0)
// Returns 2.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.tan(x: 3.14)
// Returns -0.001592654936407223
```
## Parameters

View File

@ -15,7 +15,9 @@ _**Output data type:** Float_
```js
import "math"
math.tanh(x: 0.0)
math.tanh(x: 1.23)
// Returns 0.8425793256589296
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.trunc(x: 3.14)
// Returns 3.0
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.y0(x: 3.14)
// Returns 0.3289375969127807
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.y1(x: 3.14)
// Returns 0.35853138083924085
```
## Parameters

View File

@ -16,6 +16,8 @@ _**Output data type:** Float_
import "math"
math.yn(n: 3, x: 3.14)
// Returns -0.4866506930335083
```
## Parameters