

def _my_principal_branch(expr, period, full_pb=False):
    ' Bring expr nearer to its principal branch by removing superfluous\n        factors.\n        This function does *not* guarantee to yield the principal branch,\n        to avoid introducing opaque principal_branch() objects,\n        unless full_pb=True. '
    from sympy import principal_branch
    res = principal_branch(expr, period)
    if (not full_pb):
        res = res.replace(principal_branch, (lambda x, y: x))
    return res

dataset/ETHPy150Open sympy/sympy/sympy/integrals/meijerint.py _my_principal_branch/original