upiterbarg / mpmath

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

exp_pade failure #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python runtests.py
2.
3.

What is the expected output? 

What do you see instead?

    exp_pade                                                              

Traceback (most recent call last):                                        

  File "svn/mpmath/mpmath/tests/runtests.py", line 142, in <module>       

    testit(importdir, testdir)                                            

  File "svn/mpmath/mpmath/tests/runtests.py", line 118, in testit         

    module.__dict__[f]()                                                  

  File "/home/nwagner/svn/mpmath/mpmath/tests/test_linalg.py", line 226, in
test_exp_pade                           
    e1 = exp_pade(a1)                                                     

  File
"/home/nwagner/local/lib64/python2.6/site-packages/mpmath/linalg.py", line
521, in exp_pade                  
    cx = c*x                                                              

  File "<string>", line 28, in __mul__     

What version of the product are you using? 
>>> mpmath.__version__
'0.13'

On what operating system?
Linux linux-mogv 2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200
x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by nils...@googlemail.com on 9 Sep 2009 at 7:50

GoogleCodeExporter commented 9 years ago
Hmm, I really have no idea why this happens.

Is that the full traceback?

Original comment by fredrik....@gmail.com on 10 Sep 2009 at 4:44

GoogleCodeExporter commented 9 years ago
No. 

  File "<string>", line 25, in __mul__
  File "/home/nwagner/local/lib64/python2.6/site-packages/mpmath/mptypes.py", line
377, in convert
    return matrix(x)
  File "/home/nwagner/local/lib64/python2.6/site-packages/mpmath/matrices.py", line
324, in __init__
    A = args[0].copy()
  File "/home/nwagner/local/lib64/python2.6/site-packages/mpmath/matrices.py", line
584, in copy
    new = matrix(self.__rows, self.__cols, force_type=self.force_type)
  File "/home/nwagner/local/lib64/python2.6/site-packages/mpmath/matrices.py", line
299, in __init__
    if isinstance(args[0], (list, tuple)):
RuntimeError: maximum recursion depth exceeded while calling a Python object

Original comment by nils...@googlemail.com on 10 Sep 2009 at 6:04

GoogleCodeExporter commented 9 years ago
Works for me with recent svn.

Original comment by nils...@googlemail.com on 3 Feb 2010 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by fredrik....@gmail.com on 3 Feb 2010 at 8:48