Function bose_function (o2scl)¶
-
template<class fp_t>
fp_t o2scl::bose_function(fp_t x)¶ Calculate a Bose-Einstein distribution function safely.
This function computes a Bose-Einstein distribution function
\( \left(\exp x-1\right)^{-1} \)
This function is used in the
o2scl::boson_rel
class in .Note
While this function tries to avoid this, this function may return Inf or NAN if the argument is too large large, depending on the machine precision.