(f, x)
Compute an indefinite integral of ``f`` by rewriting it as a G function.

    >>> from sympy.integrals.meijerint import meijerint_indefinite
    >>> from sympy import sin
    >>> from sympy.abc import x
    >>> meijerint_indefinite(sin(x), x)
    -cos(x)
Compute an indefinite integral of ``f`` by rewriting it as a G function.
Compute an indefinite integral of f by rewriting it as a G function .
def meijerint_indefinite(f, x):
    """
    Compute an indefinite integral of ``f`` by rewriting it as a G function.

    >>> from sympy.integrals.meijerint import meijerint_indefinite
    >>> from sympy import sin
    >>> from sympy.abc import x
    >>> meijerint_indefinite(sin(x), x)
    -cos(x)
    """
    from sympy import hyper, meijerg, count_ops
    results = []
    for a in sorted(_find_splitting_points(f, x) | set([S(0)]), key=default_sort_key):
        res = _meijerint_indefinite_1(f.subs(x, x + a), x)
        if res is None:
            continue
        results.append(res.subs(x, x - a))
        if not res.has(hyper, meijerg):
            return results[-1]
    if results:
        return next(ordered(results))
def meijerint_indefinite ( f , x ) : from sympy import hyper , meijerg , count_ops results = [ ] for a in sorted ( _find_splitting_points ( f , x ) | set ( [ S ( 0 ) ] ) , key = default_sort_key ) : res = _meijerint_indefinite_1 ( f . subs ( x , x + a ) , x ) if res is None : continue results . append ( res . subs ( x , x - a ) ) if not res . has ( hyper , meijerg ) : return results [ - 1 ] if results : return next ( ordered ( results ) )