Link Search Menu Expand Document

beta()

Computation of beta function. Beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial coefficients. It is defined by the integral

\[B(x, y) = \int_0^1 t^{x-1}(1-t)^{y-1}dt\]

Import

import * as datacook from '@pipcook/datacook';
const { beta } = datacook.Math;

Syntax

beta(x: number, y: number): number 

Parameters

Parametertypedescription
xnumberFirst shape parameter
ynumberSecond shape parameter