# shz_invf

Source: https://sh4zam.com/api/scalar/shz_invf/

> Takes the inverse of x using a slighty faster approximation than doing a full division, safely handling negative values

```c
SHZ_INLINE float shz_invf(float x) SHZ_NOEXCEPT;
```

Takes the inverse of `x` using a slighty faster approximation than doing a full division, safely handling negative values.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |

## Returns

`float`

## Availability

- **C++ equivalent:** [`shz::invf`](https://sh4zam.com/api/cpp/#shzinvf), [`shz::operator/`](https://sh4zam.com/api/cpp/#shzoperator/), [`shz::quat::operator/=`](https://sh4zam.com/api/cpp/quat/)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:292`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L292)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "FSRRA"
