(g, n)
return C, meijerg(inflate(g.an, n), inflate(g.aother, n),
                      inflate(g.bm, n), inflate(g.bother, n),
                      g.argument**n * n**(n*v))
Return C, h such that h is a G function of argument z**n and
        g = C*h.
Return C, h such that h is a G function of argument z**n and
        g = C*h.
Return C h such that h is a G function of argument z ** n and g = C * h .
def _inflate_g(g, n):
    """ Return C, h such that h is a G function of argument z**n and
        g = C*h. """
    # TODO should this be a method of meijerg?
    # See: [L, page 150, equation (5)]
    def inflate(params, n):
        """ (a1, .., ak) -> (a1/n, (a1+1)/n, ..., (ak + n-1)/n) """
        res = []
        for a in params:
            for i in range(n):
                res.append((a + i)/n)
        return res
    v = S(len(g.ap) - len(g.bq))
    C = n**(1 + g.nu + v/2)
    C /= (2*pi)**((n - 1)*g.delta)
    return C, meijerg(inflate(g.an, n), inflate(g.aother, n),
                      inflate(g.bm, n), inflate(g.bother, n),
                      g.argument**n * n**(n*v))
def _inflate_g ( g , n ) : # TODO should this be a method of meijerg? # See: [L, page 150, equation (5)] def inflate ( params , n ) : """ (a1, .., ak) -> (a1/n, (a1+1)/n, ..., (ak + n-1)/n) """ res = [ ] for a in params : for i in range ( n ) : res . append ( ( a + i ) / n ) return res v = S ( len ( g . ap ) - len ( g . bq ) ) C = n ** ( 1 + g . nu + v / 2 ) C /= ( 2 * pi ) ** ( ( n - 1 ) * g . delta ) return C , meijerg ( inflate ( g . an , n ) , inflate ( g . aother , n ) , inflate ( g . bm , n ) , inflate ( g . bother , n ) , g . argument ** n * n ** ( n * v ) )