digamma and polygamma functions