shz_tgammaf
SHZ_INLINE float shz_tgammaf(float x) SHZ_NOEXCEPT;Fast approximation for C's tgammaf().
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float |
Returns
Section titled “Returns”float
- Relative error stays within about 20% for
xbelow about 7.8, and grows withxbeyond that, since it amplifies the absolute error ofshz_lgammaf().
Availability
Section titled “Availability”- C++ equivalent:
shz::tgammaf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_trig.h:326 - Module: Trigonometry, section "Gamma"