MATLAB Function Reference Previous page   Next Page
beta

Beta function

Syntax

Definition

The beta function is

where is the gamma function.

Description

B = beta(Z,W) computes the beta function for corresponding elements of arrays Z and W. The arrays must be real and nonnegative. They must be the same size, or either can be scalar.

Examples

In this example, which uses integer arguments,

is the ratio of fairly small integers, and the rational format is able to recover the exact result.

Algorithm

See Also

betainc, betaln, gammaln


Previous page  bessely betainc Next page

© 1994-2005 The MathWorks, Inc.