BETA function
Description
BETA(a,b) returns the Beta function of a and b.
The BETA function is defined by:
Both arguments a and b must be larger than 0.
The argument a can be a real number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the BETA function applied to all elements.