Even mathematics had a religious impulse behind its teachings.