2
0
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:
John Maddock
2013-09-26 18:32:55 +00:00
parent 2fdd8e9256
commit c11e570ec0

View File

@@ -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: