

def test_Mul_is_algebraic():
    a = Symbol('a', algebraic=True)
    b = Symbol('a', algebraic=True)
    na = Symbol('na', algebraic=False)
    an = Symbol('an', algebraic=True, nonzero=True)
    nb = Symbol('nb', algebraic=False)
    x = Symbol('x')
    assert (a * b).is_algebraic
    assert ((na * nb).is_algebraic is None)
    assert ((a * na).is_algebraic is None)
    assert ((an * na).is_algebraic is False)
    assert ((a * x).is_algebraic is None)
    assert ((na * x).is_algebraic is None)

dataset/ETHPy150Open sympy/sympy/sympy/core/tests/test_assumptions.py test_Mul_is_algebraic/original