code: def spherical_to_cartesian(r,theta,phi):
      
      x = r * np.sin(phi) * np.cos(theta)
      y = r * np.sin(phi) * np.sin(theta)
      z = r * np.cos(phi)
      return (x,y,z)
docs: Simple conversion of spherical to cartesian coordinates
      
      Args:
          r,theta,phi = scalar spherical coordinates
      
      Returns:
          x,y,z = scalar cartesian coordinates