Contents Previous Next Subchapters

Psi (digamma) Function
Syntax psi(X)
See Also exp , gamma , log , beta

Description
Returns the element-by-element values for the psi function, where X is a real or double-precision matrix. The psi function is the logarithmic derivative of the gamma function.
               d      -
    psi(x)  =  -- ln | (x)
               dx
If x is negative, it is transformed to a positive argument by the reflection formula psi(1-x) = psi(x) + pi cot(pi x).

Example:
If you enter
     -psi(1.0)
O-Matrix will respond
     0.577216 
which is Euler's constant.