Classical mechanics and electromagnetism in accelerator physics. (2018)