Direct calculation of electron density in density-functional theory | Synapse