Molecular dynamics and spectra. I. Diatomic rotation and vibration | Synapse