Issue 1204: failing test: mpmath elliptic
http://code.google.com/p/sympy/issues/detail?id=1204
New issue report by Vinzent.Steinberg:
For the current beta release I get:
_____________________ entrypoint: test_elliptic_functions
______________________
def test_elliptic_functions():
t = precisemathTests()
t.testCalculateNome()
> t.testJacobiTheta1()
[/home/one/tmp/sympy-0.6.3.beta1/sympy/mpmath/tests/test_elliptic.py:355]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
def testJacobiTheta1(self):
sympy.mpmath.mpf.dps = 100
sympy.mpmath.mp.dps = 100
testlimit = sympy.mpmath.mpf('10')**(-1*(sympy.mpmath.mpf.dps - 2))
#print >> sys.stderr, testlimit
zero = sympy.mpmath.mpf('0')
#self.assertRaises(TypeError, jacobi_theta_1, 0, 0)
z = sympy.mpmath.mpf('0')
q = sympy.mpmath.mpf('0')
value = jacobi_theta_1(z, q)
self.assertEquals(value, sympy.mpmath.mpf('0'))
z = sympy.mpmath.mpf('0')
m = sympy.mpmath.pi
self.assertRaises(ValueError, jacobi_theta_1, z, m)
m = sympy.mpmath.mpf('1')
self.assertRaises(ValueError, jacobi_theta_1, z, m)
# Mathematica value for v1(u = 0.1, q = 0.1) = 0.108958
# q = 0.1, therefore m = 0.802403, according to Mathematica
z = sympy.mpmath.mpf('0.1')
m = sympy.mpmath.mpf('0.802403')
result = jacobi_theta_1(z, m)
self.assertEquals(round(result, 6), 0.108958)
E self.assertTrue(isinstance(result, sympy.mpmath.mpf))
> AttributeError: precisemathTests instance has no
attribute 'assertTrue'
[/home/one/tmp/sympy-0.6.3.beta1/sympy/mpmath/tests/test_elliptic.py:77]
Issue attributes:
Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---