Gregory, David, -1708, FRS; mathematician