Thomas Shaw Brandreth — English mathematician, inventor and classicist (1788-1873)