The elementary Jacobi rotations technique is proposed as a useful tool to obtain fitted electronic density functions expressed as linear combinations of atomic spherical shells, with the additional constraint that all coefficients are kept positive. Moreover, a Newton algorithm has been implemented to optimize atomic shell exponents, minimizing the quadratic error integral function between ab initio and fitted electronic density functions. Although the procedure is completely general, as an application example both techniques have been used to compute a 1S‐type Gaussian basis for atoms H through Kr, fitted from a 3‐21G basis set. Subsequently, molecular electronic densities are modeled in a promolecular approximation, as a simple sum of parameterized atomic contributions. This simple molecular approximation has been employed to show, in practice, its usefulness to some computational examples in the field of molecular quantum similarity measures. © 1997 John Wiley & Sons, Inc. J Comput Chem 18: 2023–2039, 1997