Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/s/y/sympy-0.7.5/sympy/matrices/tests/test_matrices.py   sympy(Download)
                [0, 0, 1]])
 
    assert M.eigenvals(multiple=False) == {S.One: 3}
 
    assert M.eigenvects() == (
                [1, 1, 1]])
 
    assert M.eigenvals() == {2*S.One: 1, -S.One: 1, S.Zero: 1}
 
    assert M.eigenvects() == (
    m = Matrix([[1, .6, .6], [.6, .9, .9], [.9, .6, .6]])
    evals = {-sqrt(385)/20 + S(5)/4: 1, sqrt(385)/20 + S(5)/4: 1, S.Zero: 1}
    assert m.eigenvals() == evals
    nevals = list(sorted(m.eigenvals(rational=False).keys()))
    sevals = list(sorted(evals.keys()))

src/s/y/sympy-HEAD/sympy/matrices/tests/test_matrices.py   sympy(Download)
                [0, 0, 1]])
 
    assert M.eigenvals(multiple=False) == {S.One: 3}
 
    assert M.eigenvects() == (
                [1, 1, 1]])
 
    assert M.eigenvals() == {2*S.One: 1, -S.One: 1, S.Zero: 1}
 
    assert M.eigenvects() == (
    m = Matrix([[1, .6, .6], [.6, .9, .9], [.9, .6, .6]])
    evals = {-sqrt(385)/20 + S(5)/4: 1, sqrt(385)/20 + S(5)/4: 1, S.Zero: 1}
    assert m.eigenvals() == evals
    nevals = list(sorted(m.eigenvals(rational=False).keys()))
    sevals = list(sorted(evals.keys()))

src/s/y/sympy-HEAD/sympy/matrices/tests/test_sparse.py   sympy(Download)
                ( 1, 1,  0),
                (-1, 0,  1)])
    vals = M.eigenvals()
    assert sorted(vals.keys()) == [-1, 1, 2]
 

src/s/y/sympy-0.7.5/sympy/matrices/tests/test_sparse.py   sympy(Download)
                ( 1, 1,  0),
                (-1, 0,  1)])
    vals = M.eigenvals()
    assert sorted(vals.keys()) == [-1, 1, 2]