#11513: add _is_numerically_zero() method to symbolic expressions
---------------------------+------------------------------------------------
Reporter: burcin | Owner: burcin
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.8
Component: symbolics | Keywords: sd35.5
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------+------------------------------------------------
Comment(by zimmerma):
Dear Burcin,
> The reason for this ticket was to move this to a separate function to
avoid code duplication.
ok I understand. But I don't like the proposed solution, since:
(1) it might say a number is zero whereas it is not (if the number is
tiny, but due to rounding
errors it gets numerically evaluated to zero, because the precision
used is fixed)
(2) it might say a zero number is not (again due to rounding errors)
It should be the responsibility of the user only to make such
approximations.
What happens if your function {{{_is_numerically_zero()}}} only checks for
*exact* integer or
real or complex zero? Do many doctests fail?
Paul
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11513#comment:9>
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 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.