WIP new math functions
parent
688f67bf38
commit
dd2de0f34b
|
@ -8,7 +8,7 @@ menu:
|
|||
v2_0_ref:
|
||||
name: InfluxDB v1
|
||||
parent: Flux functions
|
||||
weight: 202
|
||||
weight: 203
|
||||
v2.0/tags: [functions, influxdb-v1]
|
||||
---
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: Flux math functions
|
||||
description: >
|
||||
Math functions provide tools for performing mathematical operations in Flux.
|
||||
To use them, import the `math` package.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: Math
|
||||
parent: Flux functions
|
||||
weight: 202
|
||||
v2.0/tags: [math, functions]
|
||||
---
|
||||
|
||||
Math functions provide tools for performing mathematical operations in Flux.
|
||||
To use them, import the `math` package.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
```
|
||||
|
||||
{{< children type="functions" show="pages" >}}
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: math.abs() function
|
||||
description: The math.abs() function returns the absolute value of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.abs
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.abs()` function returns the absolute value of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.abs(x: -1.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.abs(x: ±Inf) // Returns +Inf
|
||||
math.abs(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: math.acos() function
|
||||
description: The math.acos() function returns the arccosine, in radians, of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.acos
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.acos()` function returns the arccosine, in radians, of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.acos(x: 0.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than -1 and less than 1.
|
||||
Otherwise, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.acos(x: <-1) // Returns NaN
|
||||
math.acos(x: >1) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
title: math.acosh() function
|
||||
description: The math.acosh() function returns the inverse hyperbolic cosine of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.acosh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.acosh()` function returns the inverse hyperbolic cosine of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.acosh(x: 1.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than 1.
|
||||
If less than 1, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.acosh(x: +Inf) // Returns +Inf
|
||||
math.acosh(x: <1) // Returns NaN
|
||||
math.acosh(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
title: math.asin() function
|
||||
description: The math.asin() function returns the arcsine, in radians, of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.asin
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.asin()` function returns the arcsine, in radians, of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.asin(x: 0.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than -1 and less than 1.
|
||||
Otherwise, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.asin(x: ±0) // Returns ±0
|
||||
math.asin(x: <-1) // Returns NaN
|
||||
math.asin(x: >1) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.asinh() function
|
||||
description: The math.asinh() function returns the inverse hyperbolic sine of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.asinh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.asinh()` function returns the inverse hyperbolic sine of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.asinh(x: 3.14)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.asinh(x: ±0) // Returns ±0
|
||||
math.asinh(x: ±Inf) // Returns ±Inf
|
||||
math.asinh(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: math.atan() function
|
||||
description: The math.atan() function returns the arctangent, in radians, of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.atan
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.atan()` function returns the arctangent, in radians, of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.atan( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.atan(x: ±0) // Returns ±0
|
||||
math.atan(x: ±Inf) // Returns ±Pi/2
|
||||
```
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
title: math.atan2() function
|
||||
description: The math.atan2() function returns the arc tangent of `y`/`x`, using the signs of the two to determine the quadrant of the return value.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.atan2
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.atan2()` function returns the arc tangent of `y`/`x`, using the signs
|
||||
of the two to determine the quadrant of the return value.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.atan2(y: 1.22, x: 3.14)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### y
|
||||
The Y coordinate used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
### x
|
||||
The X coordinate used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.atan2(y:y, x:NaN) // Returns NaN
|
||||
math.atan2(y: NaN, x:x) // Returns NaN
|
||||
math.atan2(y: +0, x: >=0) // Returns +0
|
||||
math.atan2(y: -0, x: >=0) // Returns -0
|
||||
math.atan2(y: +0, x: <=-0) // Returns +Pi
|
||||
math.atan2(y: -0, x: <=-0) // Returns -Pi
|
||||
math.atan2(y: >0, x: 0) // Returns +Pi/2
|
||||
math.atan2(y: <0, x: 0) // Returns -Pi/2
|
||||
math.atan2(y: +Inf, x: +Inf) // Returns +Pi/4
|
||||
math.atan2(y: -Inf, x: +Inf) // Returns -Pi/4
|
||||
math.atan2(y: +Inf, x: -Inf) // Returns 3Pi/4
|
||||
math.atan2(y: -Inf, x: -Inf) // Returns -3Pi/4
|
||||
math.atan2(y:y, x: +Inf) // Returns 0
|
||||
math.atan2(y: >0, x: -Inf) // Returns +Pi
|
||||
math.atan2(y: <0, x: -Inf) // Returns -Pi
|
||||
math.atan2(y: +Inf, x:x) // Returns +Pi/2
|
||||
math.atan2(y: -Inf, x:x) // Returns -Pi/2
|
||||
```
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: math.atanh() function
|
||||
description: The math.atanh() function returns the inverse hyperbolic tangent of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.atanh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.atanh()` function returns the inverse hyperbolic tangent of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.atanh(x: 0.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than -1 and less than 1.
|
||||
Otherwise, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.atanh(x: 1) // Returns +Inf
|
||||
math.atanh(x: ±0) // Returns ±0
|
||||
math.atanh(x: -1) // Returns -Inf
|
||||
math.atanh(x: <-1) // Returns NaN
|
||||
math.atanh(x: >1) // Returns NaN
|
||||
math.atanh(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.cbrt() function
|
||||
description: The math.cbrt() function returns the cube root of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.cbrt
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.cbrt()` function returns the cube root of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.cbrt(x: 1728)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.cbrt(±0) // Returns ±0
|
||||
math.cbrt(±Inf) // Returns ±Inf
|
||||
math.cbrt(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.ceil() function
|
||||
description: The math.ceil() function returns the least integer value greater than or equal to `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.ceil
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.ceil()` function returns the least integer value greater than or equal to `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.ceil(x: 3.14)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.ceil(±0) // Returns ±0
|
||||
math.ceil(±Inf) // Returns ±Inf
|
||||
math.ceil(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.copysign() function
|
||||
description: The math.copysign() function returns a value with the magnitude of `x` and the sign of `y`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.copysign
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.copysign()` function returns a value with the magnitude of `x` and the sign of `y`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.copysign(x: 1.0, y: 2.0)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The magnitude used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
### y
|
||||
The sign used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: math.cos() function
|
||||
description: The math.cos() function returns the cosine of the radian argument `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.cos
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.cos()` function returns the cosine of the radian argument `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.cos(x: 3.14)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.cos(±Inf) // Returns NaN
|
||||
math.cos(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.cosh() function
|
||||
description: The math.cosh() function returns the hyperbolic cosine of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.cosh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.cosh()` function returns the hyperbolic cosine of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.cosh(x: 1.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.cosh(±0) // Returns 1
|
||||
math.cosh(±Inf) // Returns +Inf
|
||||
math.cosh(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
title: math.dim() function
|
||||
description: The math.dim() function returns the maximum of `x`-`y` or 0.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.dim
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.dim()` function returns the maximum of `x`-`y` or 0.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.dim(x: 12.2, y: 8.1)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The X value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
### y
|
||||
The Y value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.dim(x: +Inf, y: +Inf) // Returns NaN
|
||||
math.dim(x: -Inf, y: -Inf) // Returns NaN
|
||||
math.dim(x:x, y : NaN) // Returns NaN
|
||||
math.dim(x: NaN, y :y) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.erf() function
|
||||
description: The math.erf() function returns the error function of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.erf
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.erf()` function returns the error function of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.erf(x: 22.6)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.erf(+Inf) // Returns 1
|
||||
math.erf(-Inf) // Returns -1
|
||||
math.erf(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.erfc() function
|
||||
description: The math.erfc() function returns the complementary error function of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.erfc
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.erfc()` function returns the complementary error function of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.erfc(x: 22.6)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.erfc(+Inf) // Returns 0
|
||||
math.erfc(-Inf) // Returns 2
|
||||
math.erfc(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
title: math.erfcinv() function
|
||||
description: The math.erfcinv() function returns the inverse of `math.erfc()`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.erfcinv
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.erfcinv()` function returns the inverse of `math.erfc()`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.erfcinv(x: 0.42345)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than 0 and less than 2.
|
||||
Otherwise, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.erfcinv(x: 0) // Returns +Inf
|
||||
math.erfcinv(x: 2) // Returns -Inf
|
||||
math.erfcinv(x: <0) // Returns NaN
|
||||
math.erfcinv(x: >2) // Returns NaN
|
||||
math.erfcinv(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
title: math.erfinv() function
|
||||
description: The math.erfinv() function returns the inverse error function of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.erfinv
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.erfinv()` function returns the inverse error function of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.erfinv(x: 0.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
`x` should be greater than -1 and less than 1.
|
||||
Otherwise, the operation will return `NaN`.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.erfinv(x: 1) // Returns +Inf
|
||||
math.erfinv(x: -1) // Returns -Inf
|
||||
math.erfinv(x: <-1) // Returns NaN
|
||||
math.erfinv(x: > 1) // Returns NaN
|
||||
math.erfinv(x: NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: math.exp() function
|
||||
description: The math.exp() function returns `e**x`, the base-e exponential of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.exp
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.exp()` function returns `e**x`, the base-e exponential of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.exp(x: 21.0)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.exp(x: +Inf) // Returns +Inf
|
||||
math.exp(x: NaN) // Returns NaN
|
||||
```
|
||||
|
||||
Very large values overflow to 0 or +Inf. Very small values underflow to 1.
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: math.exp2() function
|
||||
description: The math.exp2() function returns `2**x`, the base-2 exponential of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.exp2
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.exp2()` function returns `2**x`, the base-2 exponential of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.exp2(x: 21.0)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.exp2(x: +Inf) // Returns +Inf
|
||||
math.exp2(x: NaN) // Returns NaN
|
||||
```
|
||||
|
||||
Very large values overflow to 0 or +Inf. Very small values underflow to 1.
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: math.expm1() function
|
||||
description: >
|
||||
The math.expm1() function returns `e**x - 1`, the base-e exponential of `x` minus 1.
|
||||
It is more accurate than `math.exp(x:x) - 1` when `x` is near zero.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.expm1
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.expm1()` function returns `e**x - 1`, the base-e exponential of `x` minus 1.
|
||||
It is more accurate than `math.exp(x:x) - 1` when `x` is near zero.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.expm1( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.expm1(+Inf) // Returns +Inf
|
||||
math.expm1(-Inf) // Returns -1
|
||||
math.expm1(NaN) // Returns NaN
|
||||
```
|
||||
|
||||
Very large values overflow to -1 or +Inf.
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: math.float64bits() function
|
||||
description: The math.float64bits() function returns the IEEE 754 binary representation of `f`, with the sign bit of `f` and the result in the same bit position.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.float64bits
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.float64bits()` function returns the IEEE 754 binary representation of `f`, with the sign bit of `f` and the result in the same bit position.
|
||||
|
||||
_**Output data type: UInteger**_
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.float64bits(f: 1234.56)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### f
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: math.floor() function
|
||||
description: The math.floor() function returns the greatest integer value less than or equal to `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.floor
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.floor()` function returns the greatest integer value less than or equal to `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.floor(x: 1.22)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.floor(±0) // Returns ±0
|
||||
math.floor(±Inf) // Returns ±Inf
|
||||
math.floor(NaN) // Returns NaN
|
||||
```
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: math.frexp() function
|
||||
description: >
|
||||
The math.frexp() function breaks `f` into a normalized fraction and an integral power of two.
|
||||
It returns `frac` and `exp` satisfying `f == frac × 2**exp`, with the absolute
|
||||
value of `frac` in the interval [½, 1).
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.frexp
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.frexp()` function breaks `f` into a normalized fraction and an integral power of two.
|
||||
It returns `frac` and `exp` satisfying `f == frac × 2**exp`, with the absolute value
|
||||
of `frac` in the interval `[½, 1)`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.frexp(f: 22.3)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### f
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.frexp(f: ±0) // Returns ±0, 0
|
||||
math.frexp(f: ±Inf) // Returns ±Inf, 0
|
||||
math.frexp(f: NaN) // Returns NaN, 0
|
||||
```
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
title: math.gamma() function
|
||||
description: The math.gamma() function returns the Gamma function of `x`.
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.gamma
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.gamma()` function returns the Gamma function of `x`.
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.gamma(x: 2.12)
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
math.gamma(x: +Inf) = +Inf
|
||||
math.gamma(x: +0) = +Inf
|
||||
math.gamma(x: -0) = -Inf
|
||||
math.gamma(x: <0) = NaN for integer x < 0
|
||||
math.gamma(x: -Inf) = NaN
|
||||
math.gamma(x: NaN) = NaN
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.hypot() function
|
||||
description: The math.hypot() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.hypot
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.hypot()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.hypot( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.ilogb() function
|
||||
description: The math.ilogb() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.ilogb
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.ilogb()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.ilogb( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.isInf() function
|
||||
description: The math.isInf() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.isInf
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.isInf()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.isInf( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.isNaN() function
|
||||
description: The math.isNaN() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.isNaN
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.isNaN()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.isNaN( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.j0() function
|
||||
description: The math.j0() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.j0
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.j0()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.j0( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.j1() function
|
||||
description: The math.j1() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.j1
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.j1()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.j1( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.jn() function
|
||||
description: The math.jn() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.jn
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.jn()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.jn( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.ldexp() function
|
||||
description: The math.ldexp() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.ldexp
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.ldexp()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.ldexp( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.lgamma() function
|
||||
description: The math.lgamma() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.lgamma
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.lgamma()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.lgamma( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.log() function
|
||||
description: The math.log() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.log
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.log()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.log( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.log10() function
|
||||
description: The math.log10() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.log10
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.log10()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.log10( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.log1p() function
|
||||
description: The math.log1p() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.log1p
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.log1p()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.log1p( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.log2() function
|
||||
description: The math.log2() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.log2
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.log2()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.log2( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.logb() function
|
||||
description: The math.logb() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.logb
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.logb()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.logb( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.m_inf() function
|
||||
description: The math.m_inf() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.m_inf
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.m_inf()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.m_inf( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.m_max() function
|
||||
description: The math.m_max() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.m_max
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.m_max()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.m_max( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.m_min() function
|
||||
description: The math.m_min() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.m_min
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.m_min()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.m_min( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.mod() function
|
||||
description: The math.mod() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.mod
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.mod()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.mod( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.modf() function
|
||||
description: The math.modf() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.modf
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.modf()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.modf( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
title: math.NaN() function
|
||||
description: The math.NaN() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.NaN
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.NaN()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.NaN( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
_**Data type:** Float_
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.nextafter() function
|
||||
description: The math.nextafter() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.nextafter
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.nextafter()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.nextafter( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.pow() function
|
||||
description: The math.pow() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.pow
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.pow()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.pow( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.pow10() function
|
||||
description: The math.pow10() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.pow10
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.pow10()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.pow10( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.remainder() function
|
||||
description: The math.remainder() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.remainder
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.remainder()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.remainder( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.round() function
|
||||
description: The math.round() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.round
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.round()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.round( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.roundtoeven() function
|
||||
description: The math.roundtoeven() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.roundtoeven
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.roundtoeven()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.roundtoeven( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.signbit() function
|
||||
description: The math.signbit() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.signbit
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.signbit()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.signbit( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.sin() function
|
||||
description: The math.sin() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.sin
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.sin()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.sin( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.sincos() function
|
||||
description: The math.sincos() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.sincos
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.sincos()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.sincos( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.sinh() function
|
||||
description: The math.sinh() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.sinh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.sinh()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.sinh( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.sqrt() function
|
||||
description: The math.sqrt() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.sqrt
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.sqrt()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.sqrt( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.tan() function
|
||||
description: The math.tan() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.tan
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.tan()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.tan( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.tanh() function
|
||||
description: The math.tanh() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.tanh
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.tanh()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.tanh( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.trunc() function
|
||||
description: The math.trunc() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.trunc
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.trunc()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.trunc( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.y0() function
|
||||
description: The math.y0() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.y0
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.y0()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.y0( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.y1() function
|
||||
description: The math.y1() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.y1
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.y1()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.y1( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: math.yn() function
|
||||
description: The math.yn() function functionDescription
|
||||
menu:
|
||||
v2_0_ref:
|
||||
name: math.yn
|
||||
parent: Math
|
||||
weight: 301
|
||||
---
|
||||
|
||||
The `math.yn()` function functionDescription
|
||||
|
||||
```js
|
||||
import "math"
|
||||
|
||||
math.yn( EXAMPLE )
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
### x
|
||||
The value used in the operation.
|
||||
|
||||
_**Data type:** Float_
|
||||
|
||||
## Special cases
|
||||
```js
|
||||
|
||||
```
|
|
@ -7,7 +7,7 @@ menu:
|
|||
v2_0_ref:
|
||||
name: Strings
|
||||
parent: Flux functions
|
||||
weight: 203
|
||||
weight: 204
|
||||
v2.0/tags: [strings, functions]
|
||||
---
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ menu:
|
|||
v2_0_ref:
|
||||
name: Testing
|
||||
parent: Flux functions
|
||||
weight: 204
|
||||
weight: 205
|
||||
v2.0/tags: [testing, functions]
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue