-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a global is_trivial_zero function #21201
Comments
comment:1
A plan would be in symbolics to use a fast zero comparison like the one in |
Commit: |
This comment has been minimized.
This comment has been minimized.
Author: Ralf Stephan |
New commits:
|
comment:4
I am against such a terrible name in the global namespace that is furthermore almost not specified. Though it would be good to design a general solution for the different semantics of equality. |
comment:5
FYI, about 320 files under |
comment:6
Replying to @rwst:
This is a bad measure. And anway, 320 files is 12% of the number of files in the Sage source tree... |
comment:7
You aim to introduce a feature that concerns only the symbolic ring. Then simply implement it as a method of |
comment:8
So in every case (e.g. in polynomial_element.pyx) the code has to check for expression, and call that member function? |
[ticket:21201 Ticket description]:
Just to be sure: what do you mean by "check if numeric zero": check if something seems to be zero based on it numerical evaluation, or check if is syntactically zero? If the latter: yes, this is a very useful feature to have, for many, many types of objects. But in the case of |
comment:10
Replying to @mezzarobba:
Clearly not but unfortunately |
comment:11
Replying to @rwst:
Well, IMO (though I haven't really thought it through):
|
comment:12
That is pretty much in line with #19162, and I find William Stein's suggestion of |
comment:13
The original ticket will not be implemented. |
comment:14
closing positively reviewed duplicates |
Some rings have a polymorphic comparison with zero, e.g., comparison in
SR
can mean 1. "try to prove with certainty" or 2. "check if numeric zero". Other rings may have different features. This ticket implements a globalis_trivial_zero
that explicity requests the object'sis_trivial_zero
member if it exists, otherwise checksobj==0
.CC: @nbruin @videlec @mezzarobba
Component: symbolics
Author: Ralf Stephan
Branch/Commit: u/rws/add_a_global_is_trivial_zero_function @
7241f8e
Issue created by migration from https://trac.sagemath.org/ticket/21201
The text was updated successfully, but these errors were encountered: