Contents Previous Next Subchapters

The Beta Function
Syntax beta(zw)
See Also betai , besselj , gammln , erf

Description
Returns the element-by-element values for the beta function, where z and w are real or double-precision, and all of their elements are greater than 0.

The beta function is defined by
                   1
                  /   (z - 1)       (w - 1)
     beta(zw) = |  t       (1 - t)       dt
                  /
                   0

Example
If you enter
     z = [1., 2., 3.]
     w = [3., 2., 1.]
     beta(z, w)
O-Matrix will respond
     [  0.333333 , 0.166667 , 0.333333 ]