Elliptic functions and temperature inversion symmetry on spheres