Rayleigh-Ritz variational calculations of real-metal-surface properties | Synapse