Solution of the Hartree–Fock equations by a pseudospectral method: Application to diatomic molecules | Synapse