When a >= ASWITCH, the output (call it y) was identical to that of lowerIncomplete; it should've instead be 1 - y
Test called "test_gammaincupperinf" now checks that upperGamma evaluates to 0 when the second argument is infinite (before the test wrongly asserted this result should be 1).
[Required] please make sure you checked that
[x] The project builds without problems on your machine
[Optional]
I didn't add any new tests besides fixing the one mentioned above, but I checked that the results of upperGamma agree with an implementation in another language.
Please reference the issue(s) this PR is related to
The problem is described here
Fixes #195
Please list the changes introduced in this PR
"test_gammaincupperinf"
now checks that upperGamma evaluates to 0 when the second argument is infinite (before the test wrongly asserted this result should be 1).[Required] please make sure you checked that
[Optional] I didn't add any new tests besides fixing the one mentioned above, but I checked that the results of upperGamma agree with an implementation in another language.