-- the 1s, 2s and 2p functions of a bare lead nucleus, with a Gaussian nucleus of 208Pb (the default) Z = 82 G, F, Atom = CalculateAtomicBasisFunctions(Z, {{"Configuration", "1s0 2s0 2p0"}}) indices, NF = CreateAtomicIndicesList(Atom.Labels, {{"Kappas", true}}) for _, option in ipairs(Atom.Nucleus) do print(option[1], option[2]) end -- the Dirac operator with the nucleus of the atom and with a point nucleus (no options) Mfinite = OperatorToMatrix(NewOperator("Dirac", NF, Z, indices, G, F, Atom.Nucleus)) Mpoint = OperatorToMatrix(NewOperator("Dirac", NF, Z, indices, G, F)) for i, orb in ipairs(Atom.Orbitals) do local k = indices[i][1] + 1 print(string.format("%-6s energy %.8f Gaussian nucleus %.8f point nucleus %.8f Hartree", orb.Label, orb.Energy, Mfinite[k][k], Mpoint[k][k])) end