B.10 Error function, Beta, Gamma and related mathematical functions
The following table describes statements that are used to evaluate the error function, Beta, Gamma and related functions.
Syntax | Mathematical expression | Arguments and return values |
W = erf(X); | | W is a matrix with values equal to error function evaluated at each entry of X. The function works element-wise.
|
W = erfc(X); | | W is a matrix with values equal to complementary error function evaluated at each entry of X. The function works element-wise.
|
W = betafunc(X, Y); | | W is a matrix with values equal to the beta function of each entry of X and the corresponding entry of Y. The function works element-wise.
|
W = lbetafunc(X, Y); | | W is a matrix with values equal to the natural logarithm of the beta function of each entry of X and the corresponding entry of Y. The function works element-wise.
|
W = betainc(Z, X, Y); | | W is a matrix with values equal to the normalized/regularized lower incomplete beta function of each entry of X and the corresponding entry of Y. The function works element-wise.
|
W = gammafunc(X); | | W is a matrix with values equal to the gamma function of each entry of X. The function works element-wise.
|
W = lgammafunc(X); | | W is a matrix with values equal to the natural logarithm of the gamma function of each entry of X. The function works element-wise.
|
W = gammainc(Z, X); | | W is a matrix with values equal to the normalized/regularized lower incomplete gamma function of each entry of X. The function works element-wise.
|
W = mvgammafunc(X, k); | | W is a matrix with values equal to the -dimensional gamma function of each entry of X. The function works element-wise.
|
W = lmvgammafunc(X, k); | | W is a matrix with values equal to the natural logarithm of the -dimensional gamma function of each entry of X. The function works element-wise.
|