~dinko-metalac/calculus-app2/trunk

« back to all changes in this revision

Viewing changes to lib/py/sympy/integrals/tests/test_quadrature.py

  • Committer: dinko.metalac at gmail
  • Date: 2015-04-14 13:28:14 UTC
  • Revision ID: dinko.metalac@gmail.com-20150414132814-j25k3qd7sq3warup
new sympy

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
    assert [str(r) for r in w] == ['3.1415926535897932']
362
362
 
363
363
    x, w = gauss_jacobi(2, -S.Half, S.Half, 17)
364
 
    assert [str(r) for r in x] == ['0.80901699437494742',
365
 
                                   '-0.30901699437494742']
366
 
    assert [str(r) for r in w] == ['2.2732777998989693',
367
 
                                   '0.86831485369082398']
 
364
    assert [str(r) for r in x] == ['-0.30901699437494742',
 
365
                                   '0.80901699437494742']
 
366
    assert [str(r) for r in w] == ['0.86831485369082398',
 
367
                                   '2.2732777998989693']
368
368
 
369
369
    x, w = gauss_jacobi(3, -S.Half, S.Half, 17)
370
370
    assert [str(r) for r in x] == ['-0.62348980185873353',
401
401
    assert [str(r) for r in w] == ['1.0666666666666667']
402
402
 
403
403
    x, w = gauss_jacobi(2, 2, 3, 17)
404
 
    assert [str(r) for r in x] == ['0.46247529557426437',
405
 
                                   '-0.24025307335204215']
406
 
    assert [str(r) for r in w] == ['0.58152042148828007',
407
 
                                   '0.48514624517838660']
 
404
    assert [str(r) for r in x] == ['-0.24025307335204215',
 
405
                                   '0.46247529557426437']
 
406
    assert [str(r) for r in w] == ['0.48514624517838660',
 
407
                                   '0.58152042148828007']
408
408
 
409
409
    x, w = gauss_jacobi(3, 2, 3, 17)
410
410
    assert [str(r) for r in x] == ['-0.46115870378089762',