#5723: [with patch, needs work] sage new symbolics/pynac misbehave when
evaluating
with CDF elements
-----------------------+----------------------------------------------------
Reporter: ncalexan | Owner: burcin
Type: defect | Status: assigned
Priority: major | Milestone: sage-4.0.1
Component: symbolics | Keywords: sage symbolics pynac evaluating n CDF
-----------------------+----------------------------------------------------
Comment(by jason):
I get a failure for this doctest in 4.0. Burcin, could you look at this
again?
{{{
sage -t "devel/sage-main/sage/symbolic/function.pyx"
**********************************************************************
File "/home/jason/sage/devel/sage-main/sage/symbolic/function.pyx", line
19:
sage: sage.symbolic.function.function('f')(u0).subs(u0=CDF.0).n()
Exception raised:
Traceback (most recent call last):
File "/home/jason/sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/jason/sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/jason/sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_0[3]>", line 1, in <module>
sage.symbolic.function.function('f')(u0).subs(u0=CDF.gen(0)).n()###line
19:
sage: sage.symbolic.function.function('f')(u0).subs(u0=CDF.0).n()
File "expression.pyx", line 3211, in
sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:15832)
x = new_Expression_from_GEx(self._parent, self._gobj.evalf(0,
prec)).pyobject()
File "expression.pyx", line 199, in
sage.symbolic.expression.Expression.pyobject
(sage/symbolic/expression.cpp:2637)
raise TypeError, "self must be a numeric expression"
TypeError: self must be a numeric expression
**********************************************************************
1 items had failures:
1 of 4 in __main__.example_0
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/jason/sage/tmp/.doctest_function.py
[2.0 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t "devel/sage-main/sage/symbolic/function.pyx"
Total time for all tests: 2.0 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5723#comment:2>
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
-~----------~----~----~----~------~----~------~--~---