Status: New
Owner: ----
New issue 235 by
gbeli...@gmail.com: troubles using gmpy with mpmath
http://code.google.com/p/mpmath/issues/detail?id=235
What steps will reproduce the problem?
1. I installed gmplib 5.1.0, mpfr 3.1.1, mpc 1.0.1, GMPY2 2.0.0b3 full
source.
2. configured and make, make install all of these. The tests were OK.
3. I ran my script:
m=2
import os
from mpmath import *
mp.dps=1000
zetazeroval=zetazero(m)
What is the expected output? What do you see instead?
Reported an error
File "zetazero.py", line 12, in <module>
zetazeroval=zetazero(m)
File "/usr/lib/python2.7/site-packages/mpmath/functions/zetazeros.py",
line 394, in zetazero
find_rosser_block_zero(ctx, n)
...
File "/usr/lib/python2.7/site-packages/mpmath/libmp/libelefun.py", line
101, in g
return f.memo_val >> (newprec-prec)
TypeError: unsupported operand type(s) for >>: 'mpfr' and 'int'
The same error was reported at many places when I ran
import mpmath
mpmath.runtests()
File "/usr/lib/python2.7/site-packages/mpmath/libmp/libelefun.py", line
97, in g
return f.memo_val >> (memo_prec-prec)
TypeError: unsupported operand type(s) for >>: 'mpfr' and 'int'
half the tests were passed
What version of the product are you using? On what operating system?
Fedora 16, python 2.7
gmplib 5.1.0, mpfr 3.1.1, mpc 1.0.1, GMPY2 2.0.0b3
mpmath.__version__
'0.17'
mpmath.libmp.BACKEND
'gmpy'
Please provide any additional information below.
Without gmpy calculations went fine
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings