Function fermion_calc_mu_deg (o2scl)¶
-
template<class fermion_t, class fp_t = double>
bool o2scl::fermion_calc_mu_deg(fermion_t &f, fp_t temper, fp_t prec = 1.0e-18)¶ Degenerate expansion for fermions.
Attempts to evaulate thermodynamics of a degenerate fermion. If the result is accurate to within the requested precision, this function returns
true
, and otherwise this function returnsfalse
and the values in stored in thepr
,n
,en
, anded
field are meaningless.The pressure, density, and energy density, should be accurate to the requested precision, but the first term in the series expansion for the entropy is zero, so the entropy is one order lower in accuracy.
Todo
In function fermion_calc_mu_deg()
Future: Make a function like this for dndm, dsdT, etc. for fermion_deriv .