double Beta(double x, double y);
Beta function B.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | x in the Beta function definition; real. |
| 2 | y | double | y in the Beta function definition; real. |
Returns: beta function B for given parameters x and y.
Remarks:
The (complete) Euler beta function is defined by:
B(x,y)=integral _0^1 t^(x-1)(1-t)^(y-1) dt = (Gamma(x) Gamma(y))/(Gamma(x+y)) .
Domain: x, y real, neither a non-positive integer (poles of the Gamma function). Defined behavior: computed as sgn*exp(lnGamma(x)+lnGamma(y)-lnGamma(x+y)),
carrying the combined sign of the three Gamma factors; the function is symmetric, . When lnGamma(x+y) overflows the result is 0; when lnGamma(x) or lnGamma(y) overflows the result saturates to the signed maximum value.
See Also: IGamma
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler