repl.txt (1269B)
1 2 {{alias}}( x, s[, regularized[, upper]] ) 3 Computes the regularized incomplete gamma function. 4 5 The `regularized` and `upper` parameters specify whether to evaluate the 6 non-regularized and/or upper incomplete gamma functions, respectively. 7 8 If provided `x < 0` or `s <= 0`, the function returns `NaN`. 9 10 If provided `NaN` as any argument, the function returns `NaN`. 11 12 Parameters 13 ---------- 14 x: number 15 First function parameter. 16 17 s: number 18 Second function parameter. 19 20 regularized: boolean (optional) 21 Boolean indicating whether the function should evaluate the regularized 22 or non-regularized incomplete gamma function. Default: `true`. 23 24 upper: boolean (optional) 25 Boolean indicating whether the function should return the upper tail of 26 the incomplete gamma function. Default: `false`. 27 28 Returns 29 ------- 30 y: number 31 Function value. 32 33 Examples 34 -------- 35 > var y = {{alias}}( 6.0, 2.0 ) 36 ~0.9826 37 > y = {{alias}}( 1.0, 2.0, true, true ) 38 ~0.7358 39 > y = {{alias}}( 7.0, 5.0 ) 40 ~0.8270 41 > y = {{alias}}( 7.0, 5.0, false ) 42 ~19.8482 43 > y = {{alias}}( NaN, 2.0 ) 44 NaN 45 > y = {{alias}}( 6.0, NaN ) 46 NaN 47 48 See Also 49 -------- 50