JensGrabner / mpmath-2

Automatically exported from code.google.com/p/mpmath
Other
3 stars 0 forks source link

typo in functions/elliptic.py #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Line 74 in elliptic.py should be return m

>>> from mpmath import *
>>> qfrom(m = nan)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\lib\site-packages\mpmath\ctx_mp_python.py", line 1008, in f_wrapped
    retval = f(ctx, *args, **kwargs)
  File "C:\Python26\lib\site-packages\mpmath\functions\elliptic.py", line 114, in qfrom
    return nome(ctx, m)
  File "C:\Python26\lib\site-packages\mpmath\functions\elliptic.py", line 74, in nome
    return n
NameError: global name 'n' is not defined

Original issue reported on code.google.com by zephyrtr...@gmail.com on 17 Aug 2010 at 9:22

GoogleCodeExporter commented 9 years ago
Fixed in r1186. Thanks!

Original comment by fredrik....@gmail.com on 24 Aug 2010 at 9:05