bdtrc(k, n, p)¶
Returns the sum of the terms k + 1 through n of the Binomial probability density:
The terms are not summed directly; instead the incomplete beta integral is employed, according to the formula:
y = bdtrc( k, n, p ) = incbet( k+1, n-k, p )
The arguments must be positive, with p ranging from 0 to 1.
Tested at random points (a, b, p).
|a, b||relative error|
|For p between 0.001 and 1|
|For p between 0 and .001|