def test_as_base_exp(): assert x.as_base_exp() == (x, S.One) assert (x * y * z).as_base_exp() == (x * y * z, S.One) assert (x + y + z).as_base_exp() == (x + y + z, S.One) assert ((x + y) ** z).as_base_exp() == (x + y, z)
def test_as_base_exp(): assert x.as_base_exp() == (x, S.One) assert (x * y * z).as_base_exp() == (x * y * z, S.One) assert (x + y + z).as_base_exp() == (x + y + z, S.One) assert ((x + y)**z).as_base_exp() == (x + y, z)