For some inputs (apparently close to 1), `qinvgamma` is returning `nan`. Example: ```cpp stats::qinvgamma(0.999551553841898, 2.0, 1.0) ``` Probably the result of overflow?