def meijerint_indefinite(f, x):
 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(rv), rv.atoms(exp))
   results.extend(rv)
 if results:
  return next(ordered(results))

def meijerint_indefinite ( f , x ) : 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 ( rv ) , rv . atoms ( exp ) ) results . extend ( rv ) if results : return next ( ordered ( results ) )
compute an indefinite integral of f by rewriting it as a g function .