New in 0.9.1
AtomNumberToName(Z) returns the symbol of the chemical element with atomic number $Z$, from “H” for $Z = 1$ to “Og” for $Z = 118$. The inverse is AtomNameToNumber().
The elements of the 3d series, and the name of the element of an atomic calculation with CalculateAtomicBasisFunctions(), which reports the nuclear charge as Atom.Z.
-- the elements of the 3d series for Z = 21, 30 do io.write(AtomNumberToName(Z), " ") end print() -- the name of the element of an atomic calculation G, F, Atom = CalculateAtomicBasisFunctions(26) print(string.format("%s %s, Etot = %.6f Hartree", AtomNumberToName(Atom.Z), Atom.Configuration, Atom.Etot))
Sc Ti V Cr Mn Fe Co Ni Cu Zn Fe [Ar] 3d6 4s2, Etot = -1271.391984 Hartree