You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lgamma(-1) returns NaN, which is documented and what Boost does but stupid
Description:
The limit of the Gamma function as its argument approaches a non-negative integer is + / - infinity depending on whether you approach from the right or the left. The C++11 version of lgamma returns positive infinity, as does R. We should switch to the C++11 version of all these functions in cmath.
Reproducible Steps:
Evaluate lgamma at a non-positive integer
Current Output:
NaN
Expected Output:
inf
Additional Information:
Current Version:
v2.15.0
The text was updated successfully, but these errors were encountered:
Summary:
lgamma(-1)
returns NaN, which is documented and what Boost does but stupidDescription:
The limit of the Gamma function as its argument approaches a non-negative integer is + / - infinity depending on whether you approach from the right or the left. The C++11 version of lgamma returns positive infinity, as does R. We should switch to the C++11 version of all these functions in cmath.
Reproducible Steps:
Evaluate lgamma at a non-positive integer
Current Output:
NaN
Expected Output:
inf
Additional Information:
Current Version:
v2.15.0
The text was updated successfully, but these errors were encountered: