note that both functions have the symmetry of the modular group