'Returns a linear combination of Meijer G-functions.
Examples
>>> from sympy.holonomic import expr_to_holonomic
>>> from sympy import sin, cos, hyperexpand, log, symbols
>>> x = symbols(\'x\')
>>> hyperexpand(expr_to_holonomic(cos(x) + sin(x)).to_meijerg())
sin(x) + cos(x)
>>> hyperexpand(expr_to_holonomic(log(x)).to_meijerg()).simplify()
log(x)
See Also
to_hyper()'

def to_meijerg(self):

    rep = self.to_hyper(as_list=True)
    sol = S(0)
    for i in rep:
        if (len(i) == 1):
            sol += i[0]
        elif (len(i) == 2):
            sol += (i[0] * _hyper_to_meijerg(i[1]))
    return sol
