#6196: [with patch; needs work] mpmath support
-------------------------------+--------------------------------------------
Reporter: fredrik.johansson | Owner: mhansen
Type: enhancement | Status: assigned
Priority: major | Milestone:
Component: packages | Keywords:
Reviewer: Nick Alexander | Author: Fredrik Johannson, Mike Hansen
Merged: |
-------------------------------+--------------------------------------------
Comment(by boothby):
Doctest failures:
{{{
sage -t -long devel/sage/sage/rings/real_mpfr.pyx
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-main/sage/rings/real_mpfr.pyx",
line 2284:
sage: RR(-1.5)._mpmath_()
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_65[2]>", line 1, in <module>
RR(-RealNumber('1.5'))._mpmath_()###line 2284:
sage: RR(-1.5)._mpmath_()
File "real_mpfr.pyx", line 2289, in
sage.rings.real_mpfr.RealNumber._mpmath_ (sage/rings/real$
from sage.libs.mpmath.all import make_mpf
File "/space/boothby/sage-4.0.3/local/lib/python2.5/site-
packages/sage/libs/mpmath/all.py", l$
import mpmath
ImportError: No module named mpmath
**********************************************************************
1 items had failures:
1 of 3 in __main__.example_65
***Test Failed*** 1 failures.
}}}
{{{
sage -t -long devel/sage/sage/rings/complex_number.pyx
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/rings/complex_number.pyx", line 484:
sage: CC(1,2)._mpmath_()
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_15[2]>", line 1, in <module>
CC(Integer(1),Integer(2))._mpmath_()###line 484:
sage: CC(1,2)._mpmath_()
File "complex_number.pyx", line 489, in
sage.rings.complex_number.ComplexNumber._mpmath_ (sag$
from sage.libs.mpmath.all import make_mpc
File "/space/boothby/sage-4.0.3/local/lib/python2.5/site-
packages/sage/libs/mpmath/all.py", l$
import mpmath
ImportError: No module named mpmath
**********************************************************************
1 items had failures:
1 of 3 in __main__.example_15
***Test Failed*** 1 failures.
}}}
{{{
sage -t -long devel/sage/sage/structure/element.pyx
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/structure/element.pyx", line 426:
sage: from sage.libs.mpmath.all import mp, mpmathify
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_13[2]>", line 1, in <module>
from sage.libs.mpmath.all import mp, mpmathify###line 426:
sage: from sage.libs.mpmath.all import mp, mpmathify
File "/space/boothby/sage-4.0.3/local/lib/python2.5/site-
packages/sage/libs/mpmath/all.py", l$
import mpmath
ImportError: No module named mpmath
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/structure/element.pyx", line 427:
sage: mp.dps = 30
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_13[3]>", line 1, in <module>
mp.dps = Integer(30)###line 427:
sage: mp.dps = 30
NameError: name 'mp' is not defined
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/structure/element.pyx", line 428:
sage: 25._mpmath_(53)
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
...
}}}
{{{
sage -t -long devel/sage/sage/libs/mpmath/utils.pyx
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/libs/mpmath/utils.pyx", line 27:
sage: from mpmath.libmpf import from_man_exp
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[2]>", line 1, in <module>
from mpmath.libmpf import from_man_exp###line 27:
sage: from mpmath.libmpf import from_man_exp
ImportError: No module named mpmath.libmpf
**********************************************************************
File "/space/boothby/sage-4.0.3/devel/sage-
main/sage/libs/mpmath/utils.pyx", line 28:
sage: from_man_exp(-6, -1)
Exception raised:
Traceback (most recent call last):
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/space/boothby/sage-4.0.3/local/bin/sagedoctest.py", line 38,
in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/space/boothby/sage-4.0.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
...
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6196#comment:8>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---