

def meijerint_indefinite(f, x):
    '\n    Compute an indefinite integral of ``f`` by rewriting it as a G function.\n\n    Examples\n    ========\n\n    >>> from sympy.integrals.meijerint import meijerint_indefinite\n    >>> from sympy import sin\n    >>> from sympy.abc import x\n    >>> meijerint_indefinite(sin(x), x)\n    -cos(x)\n    '
    from sympy import hyper, meijerg
    results = []
    for a in sorted((_find_splitting_points(f, x) | {S(0)}), key=default_sort_key):
        res = _meijerint_indefinite_1(f.subs(x, (x + a)), x)
        if (not res):
            continue
        res = res.subs(x, (x - a))
        if _has(res, hyper, meijerg):
            results.append(res)
        else:
            return res
    if f.has(HyperbolicFunction):
        _debug('Try rewriting hyperbolics in terms of exp.')
        rv = meijerint_indefinite(_rewrite_hyperbolics_as_exp(f), x)
        if rv:
            if (not (type(rv) is list)):
                return collect(factor_terms(f), rv.atoms(exp))
            results.extend(rv)
    if results:
        return next(ordered(results))

dataset/ETHPy150Open sympy/sympy/sympy/integrals/meijerint.py meijerint_indefinite/VarMisuse@181/372 `rv`->`f`