def test_simple_1(): assert x.nseries(x, n=5) == x assert y.nseries(x, n=5) == y assert (1 / (x * y)).nseries(y, n=5) == 1 / (x * y) assert Rational(3, 4).nseries(x, n=5) == Rational(3, 4) assert x.nseries() == x
def test_simple_1(): assert x.nseries(x, 0, 5) == x assert y.nseries(x, 0, 5) == y assert (1/(x*y)).nseries(y, 0, 5) == 1/(x*y) assert Rational(3,4).nseries(x, 0, 5) == Rational(3,4)