Class bose_einstein_integ_tl (o2scl)

O2scl : Class List

template<class inte_t, class fp_t = double>
class bose_einstein_integ_tl

Compute a Bose-Einstein integral by direct integration.

This class performs direct computation of the Bose-Einstein integral

\[ F_{a}(\mu) = \int_0^{\infty} \frac{x^a}{e^{x-\mu}-1} \, . \]
This class is used in o2scl::polylog .

Todo

In bose_einstein_integ_tl, better testing of accuracy.

Public Functions

inline int calc_err(fp_t a, fp_t mu, fp_t &res, fp_t &err)

Compute the integral, storing the result in res and the error in err.

Public Members

inte_t iiu

The integrator.

Protected Types

typedef std::function<fp_t(fp_t)> func_t

Internal function type.

Protected Functions

inline fp_t obj_func(fp_t x, fp_t a, fp_t mu)

The Bose-Einstein function.