He attended University College London (UCL), where he studied mathematics, and in 1848 earned a master's degree in moral philosophy.
Ia masuk University College London (UCL), dimana ia belajar matematika, dan pada 1848 meraih gelar master dalam bidang filsafat moral.