35 double dM = (mMax - fM0) / iters;
36 for (
int i = 0;
i < iters; ++
i) {
37 double x = fM0 + (0.5 +
i) * dM;
39 ret += fC * pow((
x) * (
x) + fmo * fmo, -5. / 4.) *
exp((
x) / fTH)
40 * CalculateParticleDensity(T, muB,
x, dMu);
42 ret += fC * pow((
x) * (
x) + fmo * fmo, -5. / 4.) *
exp((
x) / fTH)
43 * CalculateEnergyDensity(T, muB,
x, dMu);
45 ret += fC * pow((
x) * (
x) + fmo * fmo, -5. / 4.) *
exp((
x) / fTH)
46 * CalculateEntropyDensity(T, muB,
x, dMu);
48 ret += fC * pow((
x) * (
x) + fmo * fmo, -5. / 4.) *
exp((
x) / fTH)
49 * CalculatePressure(T, muB,
x, dMu);
58 return T * CalculateParticleDensity(T, muB, mass, dMu);
68 double tMu = muB + dMu;
69 double tMass = mass / T;
75 for (
int i = 0;
i < 32;
i++) {
76 double x2 =
x[
i] *
x[
i];
77 double E =
sqrt(
x[
i] *
x[
i] + tMass * tMass);
78 ret += w[
i] * x2 *
exp(-E + tMu) * (x2 / 3. / E + E - tMu);
91 * CalculateParticleDensity(T, muB, mass, dMu);
95 double tMu = muB + dMu;
96 double tMass = mass / T;
102 if (tMu > tMass)
return 0.;
104 for (
int i = 0;
i < 32;
i++) {
106 double E =
sqrt(
x[
i] *
x[
i] + tMass * tMass);
107 ret += w[
i] *
x[
i] *
x[
i] * E *
exp(-E + tMu);