mirror of
https://github.com/boostorg/math.git
synced 2026-01-28 19:32:08 +00:00
Fix use of student's t approximation to inverse so we don't get 1 and 0 as the result.
[SVN r85966]
This commit is contained in:
@@ -525,7 +525,7 @@ T ibeta_inv_imp(T a, T b, T p, T q, const Policy& pol, T* py)
|
||||
//
|
||||
// Select calculation method for the initial estimate:
|
||||
//
|
||||
if((b == 0.5f) && (a >= 0.5f))
|
||||
if((b == 0.5f) && (a >= 0.5f) && (p != 1))
|
||||
{
|
||||
//
|
||||
// We have a Student's T distribution:
|
||||
|
||||
Reference in New Issue
Block a user