#18091: symbolic floor,ceil,factorial need _evalf_ too
-------------------------+----------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
With
{{{
sage: f(x) = floor(x)
sage: g(x) = ceil(x)
sage: h(x) = factorial(x)
}}}
any of the following
{{{
sage: f(pi)._numerical_approx()
sage: g(pi)._numerical_approx()
sage: h(5)._numerical_approx()
}}}
will result in
{{{
src/sage/symbolic/expression.pyx in
sage.symbolic.expression.Expression._numerical_approx
(build/cythonized/sage/symbolic/expression.cpp:27487)()
4888 # in pynac
4889 if is_a_numeric(x._gobj):
-> 4890 res = py_object_from_numeric(x._gobj)
4891 elif is_a_constant(x._gobj):
4892 res = x.pyobject()
TypeError: cannot evaluate symbolic expression numerically
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18091>
Sage <http://www.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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.