Implementation of the psi or digamma function. See also scipy.special.psi or scipy.special.digamma
Source:
- http://scipp.ucsc.edu/~haber/ph116A/psifun_11.pdf
- NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY, NIST handbook of mathematical functions, F. W. J. Olver et al., Eds., Cambridge University Press, Cambridge New York Melbourne (2010).
function psi extends TRANSFORM.Icons.Function; input Real x "Input value"; input Integer nk = 10 "Number of summations"; output Real psi "psi function value"; end psi;