function parameter
function parameter
boolean indicating if the function should evaluate the regularized or non-regularized incomplete gamma functions (default: true)
boolean indicating if the function should return the upper tail of the incomplete gamma function (default: false)
function value
javascript
var y = gammainc( 6.0, 2.0 )
// returns ~0.9826
javascript
var y = gammainc( 1.0, 2.0, true, true )
// returns ~0.7358
javascript
var y = gammainc( 7.0, 5.0 )
// returns ~0.8270
javascript
var y = gammainc( 7.0, 5.0, false )
// returns ~19.8482
javascript
var y = gammainc( NaN, 2.0 )
// returns NaN
var y = gammainc( 6.0, NaN )
// returns NaN
Computes the regularized incomplete gamma function.
Notes
regularized
andupper
parameters specify whether to evaluate the non-regularized and/or upper incomplete gamma functions, respectively.x < 0
ors <= 0
, the function returnsNaN
.