answer: By 1846 the planet Uranus had completed nearly one full orbit since its discovery by William Herschel in 1781, and astronomers had detected a series of irregularities in its path which could not be entirely explained by Newton's law of gravitation .