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
I don't know if this qualifies as a bug, or is undefined behavior as far as boost/math is concerned, but I get three different behaviors from ibeta_inv(nan, 2, 0.5), ibeta_inv(2, nan, 0.5) and ibeta_inv(2, 2, nan):
ibeta_inv(nan, 2, 0.5) does not raise an exception; nan is returned.
terminate called after throwing an instance of 'boost::wrapexcept<boost::math::rounding_error>'
what(): Error in function boost::math::trunc<long double>(long double):
Value nan can not be represented in the target integer type.
The text was updated successfully, but these errors were encountered:
I don't know if this qualifies as a bug, or is undefined behavior as far as boost/math is concerned, but I get three different behaviors from
ibeta_inv(nan, 2, 0.5)
,ibeta_inv(2, nan, 0.5)
andibeta_inv(2, 2, nan)
:ibeta_inv(nan, 2, 0.5)
does not raise an exception;nan
is returned.ibeta_inv(2, nan, 0.5)
raises:ibeta_inv(2, 2, nan)
raises:The text was updated successfully, but these errors were encountered: