#10053: Equality testing instead of comparisons in differential forms code
-----------------------------------+----------------------------------------
Reporter: jvkersch | Owner: burcin
Type: defect | Status: needs_review
Priority: major | Milestone:
Component: symbolics | Keywords: forms, comparison, equality
Author: Joris Vankerschaver | Upstream: N/A
Reviewer: Niles Johnson | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Comment(by jpflori):
As far as symbolic variables are concerned, pynac can compare then.
Currently it does so by comparing the underlying strings, but it could
change soon because Burcin and I are working on the orders used within
pynac (see http://groups.google.com/group/pynac-
devel/browse_thread/thread/a36020bf9208bf08 , however you'll still get
consistent equality...).
However, when using operators <, ==, etc. or _richcmp_ you get symbolic
equalities and inequalities.
You can use !__cmp!__ (symbolic/expression.pyx) or cmp to actually compare
them (what is currently done by comparing strings).
If I understand correctly that calls _cmp (structure/elemet.pyx) which
calls _cmp_c_impl (symbolic/expression.pyx) which calls compare of pynac
(defined in libs/ginac/decl.pxi).
I don't know what is done with the tuples...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10053#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.