~dinko-metalac/calculus-app2/trunk

« back to all changes in this revision

Viewing changes to lib/py/sympy/mpmath/tests/test_elliptic.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:
216
216
        r2 = jtheta(1, z, q)
217
217
    assert r1.ae(r2)
218
218
    mp.dps = 15
219
 
    # issue 39 about high derivatives
 
219
    # issue 3138 about high derivatives
220
220
    assert jtheta(3, 4.5, 0.25, 9).ae(1359.04892680683)
221
221
    assert jtheta(3, 4.5, 0.25, 50).ae(-6.14832772630905e+33)
222
222
    mp.dps = 50
577
577
    res = mpf('0.9762691700944007312693721148331') - \
578
578
          mpf('0.0307203994181623243583169154824')*j
579
579
    r = jcn(u, m)
580
 
    assert r.real.ae(res.real)
581
 
    assert r.imag.ae(res.imag)
 
580
    #assert r.real.ae(res.real)
 
581
    #assert r.imag.ae(res.imag)
582
582
    assert(mpc_ae(r, res))
583
583
 
584
584
    #N[JacobiDN[1/4 + I/8, 1/3 + I/7], 35]
640
640
        assert elliprg(0, mpf('0.0796'), 4).ae('1.0284758090288040009838871385180217366569777284430590125081211090574701293154645750017813190805144572673802094')
641
641
    mp.dps = 15
642
642
 
643
 
def test_issue198():
 
643
def test_issue_3297():
644
644
    assert isnan(qfrom(m=nan))