Over a period of forty years, he periodically addressed the determination of the constants in Carl Friedrich Gauss's theory of terrestrial magnetism. Again, the calculations involved great labour, and were not published during his lifetime. They were edited by his brother, William Grylls Adams, and appear in the second volume of the collected "Scientific Papers". Numerical computation of this kind might almost be described as his pastime. He calculated the Euler–Mascheroni constant, perhaps somewhat eccentrically, to 236 decimal places and evaluated the Bernoulli numbers up to the 62nd.