Пример #1
0
def test_jacobi():
    assert legendre(-1, 77) == 1
    assert legendre(14, 15) == -1
Пример #2
0
def test_jacobi():
    assert legendre(-1, 77) == 1
    assert legendre(14, 15) == -1
Пример #3
0
def test_legendre():
    assert legendre(-1, 5) == 1
    assert legendre(0, 5) == 0
    assert legendre(2, 5) == -1
Пример #4
0
def test_legendre():
    assert legendre(-1, 5) == 1
    assert legendre(0, 5) == 0
    assert legendre(2, 5) == -1