A classbook of arithmetic and trigonometry