ePDF  1.1.0
A QED evolution library
specialfunctions.h
Go to the documentation of this file.
1 //
2 // ePDF
3 //
4 
5 #pragma once
6 
7 #include <complex>
8 
9 namespace ePDF
10 {
16  std::complex<double> psi(std::complex<double> const& z);
17 
23  inline double psi(double const& z)
24  {
25  std::complex<double> zc(z, 0.0);
26  return psi(zc).real();
27  }
28 
35  std::complex<double> dpsi(std::complex<double> const& z, int const& m);
36 
42  inline double dpsi(double const& z, int const& m)
43  {
44  std::complex<double> zc(z, 0.0);
45  return dpsi(zc, m).real();
46  }
47 
56  double wgplg(int const& n, int const& p, double const& x);
57 
65  inline double polylog(int const& n, double const& x) { return wgplg(n-1,1,x); }
66 
72  inline double dilog(double const& x) { return polylog(2,x); }
73 
79  inline double trilog(double const& x) { return polylog(3,x); }
80 }
ePDF::dilog
double dilog(double const &x)
function for the computation of the dilogarithm
Definition: specialfunctions.h:72
ePDF::dpsi
std::complex< double > dpsi(std::complex< double > const &z, int const &m)
function for the computation of the complex polygamma function
ePDF::polylog
double polylog(int const &n, double const &x)
function for the computation of the polylogarithms
Definition: specialfunctions.h:65
ePDF::wgplg
double wgplg(int const &n, int const &p, double const &x)
function for the computation of the Nielsen's generalized dilogs.
ePDF::trilog
double trilog(double const &x)
function for the computation of the trilogarithm
Definition: specialfunctions.h:79
ePDF::psi
std::complex< double > psi(std::complex< double > const &z)
function for the computation of the complex digamma function
ePDF
Definition: alphaem.h:12