-- the atomic operators of Ne on its own Dirac-Fock orbitals G, F, Atom = CalculateAtomicBasisFunctions(10) indices, NF = CreateAtomicIndicesList(Atom.Labels, {{"Kappas", true}}) H0 = NewOperator("Dirac", NF, 10, indices, G, F, Atom.Nucleus) -- kinetic energy, rest mass and nucleus U = NewOperator("AU", NF, indices, G, F) -- Coulomb interaction M = OperatorToMatrix(H0) for i, label in ipairs(Atom.Labels) do local k = indices[i][1] + 1 print(string.format("<%s|h_D|%s> = %12.6f Hartree", label, label, M[k][k])) end psi = NewWavefunction(NF, 0, {{string.rep("1", NF), 1}}) print(string.format(" = %.8f Hartree, Atom.Etot = %.8f Hartree", psi*(H0 + U)*psi, Atom.Etot))