# shz_tgammaf

Source: https://sh4zam.com/api/trig/shz_tgammaf/

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

Fast approximation for C's tgammaf().

## Parameters

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

## Returns

`float`

## Notes

- Relative error stays within about 20% for `x` below about 7.8, and grows with `x` beyond that, since it amplifies the absolute error of `shz_lgammaf()`.

## Availability

- **C++ equivalent:** [`shz::tgammaf`](https://sh4zam.com/api/cpp/#shztgammaf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_trig.h:326`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_trig.h#L326)
- **Module:** [Trigonometry](https://sh4zam.com/api/trig/), section "Gamma"
