Exemplo n.º 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]
Exemplo n.º 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]
Exemplo n.º 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)