Mathematical tracts on the lunar and planetary theories; the figure of the earth, precession and nutation, the calculus of variations, and the undulatory theory of optics