Ticket #1075 (closed defect: invalid)
[with patch] sync'ing hashes for fraction fields and rings
| Reported by: | jbmohler | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | basic arithmetic | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
The attached patch provides a custom hash function for fraction field elements so that fractions with a denominator of 1 hash the same as the hash of the numerator as an element in the ring. A charming side effect is that hash is *much* faster now for fraction field elements of MPoly's over QQ.
This fixes some bugs (IMO) in the subs method of ParentWithGens? when passing a dictionary.
I don't think there is any problems with hash's changing from one version to the next -- I guess there might be something I'm missing here.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

