This paper develops a Fortran code which is capable to construct the simplest LS eigenfunctions for desired symmetry and determine all permitted atomic LS spectral terms under a given orbital occupancy by implementing and extending the Schaefer and Harris method. Examples (in some cases the most complete set to date) of multiple spectroscopic terms of LS coupling of atomic states for both non-equivalent and equivalent electronic configurations are given. It also corrects a few observed errors from the recent literature.
We have developed a computer code for {/em ab initio} the variational configuration interaction calculation of the electronic structure of atoms via variationally optimized Lagurre type orbitals, treating the orbital effective charges as variational parameters. Excited states of the same symmetry, in order to avoid the inherent restrictions of the standard method of Hylleraas--Unheim and MacDonald, are computed variationally by minimizing the recently developed minimization functionals for excited states. By computing, at the minimum, the one-electron density and the probability distribution of the two-electron angle, and the most probable two-electron angle, we investigate the atomic states of the carbon atom. We show that, without resorting to the (admittedly unproven) concept of hybridization, as an intrinsic property of the atomic wave function, the most probable value of the two-electron angle is around the known angles of carbon bonding, i.e. either 109^/circ or 120^/circ or 180^/circ, depending on each low-lying state of the bare carbon atom.