docs-v2/content/v2.0/reference/flux/stdlib/math/erfcinv.md

42 lines
807 B
Markdown

---
title: math.erfcinv() function
description: The math.erfcinv() function returns the inverse of `math.erfc()`.
aliases:
- /v2.0/reference/flux/functions/math/erfcinv/
menu:
v2_0_ref:
name: math.erfcinv
parent: Math
weight: 301
---
The `math.erfcinv()` function returns the inverse of `math.erfc()`.
_**Output data type:** Float_
```js
import "math"
math.erfcinv(x: 0.42345)
// Returns 0.5660037715858239
```
## 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
```