John Reynolds of the Mint: A mathematician in the service of king and commonwealth