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.

def sphere_volume(R, n):
    """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.
    """
    return ((np.pi ** (n / 2.0)) / scipy.special.gamma(n / 2.0 + 1)) * R ** n