code: def sphere_volume(R, n):
      
      return ((np.pi ** (n / 2.0)) / scipy.special.gamma(n / 2.0 + 1)) * R ** n
docs: Return the volume of a sphere in an arbitrary number of dimensions.
  
      Parameters
      ----------
      R: array-like
          Radius.
      n: array-like
          The number of dimensions of the space in which the sphere lives.
  
      Returns
      -------
      V: array-like
          Volume.