SMS dit: Plane and spherical trigonometry