<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/math/special.py#L1025-L1042) |

Computes the inverse of [`tf.math.erfc`](https://www.tensorflow.org/api_docs/python/tf/math/erfc) of `z` element-wise.

    tfp.math.erfcinv(
        z, name=None
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [TFP Release Notes notebook (0.12.1)](https://www.tensorflow.org/probability/examples/TFP_Release_Notebook_0_12_1) |

> [!NOTE]
> **Note:** This is mathematically equivalent to computing `erfinv(1 - x)` however is more numerically stable.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `z` | A Tensor with type `float32` or `float64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `erfcinv` | erfcinv evaluated at `z`. A Tensor with the same shape and same dtype as `z`. |

<br />