-- the 2p orbitals of Ne: the large components G and the small components F G, F, Atom = CalculateAtomicBasisFunctions(10) c, r = PhysicalConstants.cAU.value, 1 for i, o in ipairs(Atom.Orbitals) do if o.l == 1 then -- F is close to (G' + kappa G/r)/(2c), the kinetic balance print(string.format("%-6s kappa %2d G(1) = %8.6f F(1) = %10.7f (G'(1) + kappa G(1))/(2c) = %10.7f", o.Label, o.kappa, G[i](r), F[i](r), (G[i](r, 1) + o.kappa*G[i](r)/r)/(2*c))) end end print(string.format("type %s, degree %d, %d knots from %g to %g, %d points x", G[1].type, G[1].degree, #G[1].knots, G[1].knots[1], G[1].knots[#G[1].knots], #G[1].x)) -- the overlaps of 1s1/2 and 2s1/2: the products are BSplines on the points x print(string.format("<1s|1s> - 1 = %.1e, <1s|2s> = %.1e, type of G * G: %s", InterpolatingFunction.Integrate(G[1]*G[1] + F[1]*F[1]) - 1, InterpolatingFunction.Integrate(G[1]*G[2] + F[1]*F[2]), (G[1]*G[2]).type))