Even as a boy he wanted to become an engineer.
He enrolled for a BSc degree at University College, London, graduated in 1870, and studied under the mathematician Augustus de Morgan and the physicist George Carey Foster.