-- all functionals without a gradient (sigma = 0), at a low and at a very high density print(string.format("c = %.6f, the speed of light used by RLDA-MV", PhysicalConstants.cAU.value)) for _, n in ipairs({1, 1e6}) do local kF = (3*math.pi^2*n)^(1/3) print(string.format("n = %g bohr^-3, kF/c = %.4f", n, kF/PhysicalConstants.cAU.value)) for _, method in ipairs({"LDA", "LDA-VWN", "RLDA-MV", "PBE", "PBE-VWN"}) do local e, dedn = XCFunctional(method, n) print(string.format(" %-8s e/n = %11.6f de/dn = %11.6f", method, e/n, dedn)) end end