// Calculate U_{1}/N = 1/N \sum_k \epsilon_h(k) f_h(\xi_h(k)) func HolonEnergy(env *tempAll.Environment) (float64, error) { inner := func(k vec.Vector) float64 { return env.Epsilon_h(k) * env.Fermi(env.Xi_h(k)) } dim := 2 avg := bzone.Avg(env.PointsPerSide, dim, inner) return avg, nil }
func innerX1(env *tempAll.Environment, k vec.Vector) float64 { return env.Fermi(env.Xi_h(k)) }
func innerD1(env *tempAll.Environment, k vec.Vector) float64 { return math.Sin(k[0]) * math.Sin(k[1]) * env.Fermi(env.Xi_h(k)) }
func innerMu_hNoninteracting(env *tempAll.Environment, k vec.Vector) float64 { return env.Fermi(env.Xi_h(k)) }
func innerD1Noninteracting(env *tempAll.Environment, k vec.Vector) float64 { sxy := math.Sin(k[0]) * math.Sin(k[1]) return -sxy * env.Fermi(env.Xi_h(k)) }