Example #1
0
def test_simple():
    assert list(x.lseries()) == [x]
    assert list(Integer(1).lseries(x)) == [1]
    assert not next((x / (x + y)).lseries(y)).has(O)
    assert [t.doit() for t in Derivative(1 + x, x).lseries(x)] == [0, 1]

    # issue sympy/sympy#5183
    s = (x + 1 / x).lseries()
    assert list(s) == [1 / x, x]
Example #2
0
def test_simple():
    assert list(x.lseries()) == [x]
    assert list(Integer(1).lseries(x)) == [1]
    assert not next((x / (x + y)).lseries(y)).has(O)
    assert [t.doit() for t in Derivative(1 + x, x).lseries(x)] == [0, 1]
Example #3
0
def test_simple():
    assert [t for t in x.lseries()] == [x]
    assert [t for t in S.One.lseries(x)] == [1]
    assert not next((x / (x + y)).lseries(y)).has(O)