Opened 13 years ago
Closed 13 years ago
#5188 closed defect (invalid)
squaring some factorizations has a bug
Reported by: | was | Owned by: | tbd |
---|---|---|---|
Priority: | critical | Milestone: | sage-duplicate/invalid/wontfix |
Component: | algebra | Keywords: | |
Cc: | wjp | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
In particular this isn't good:
sage: factor(-1) -1 sage: (factor(-1))^2 -1 sage: (factor(-1)^2).value() == -1 True
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
- Cc wjp added
comment:3 Changed 13 years ago by
Wouldn't it be a good idea to fix the bug, whlie not dealing with the general issue, but completely changing the __pow__()
function for factorizations? Currently it calls a generic powering function, but that is rather silly. We should take the power of the unit, but just multiply the exponents in the factorization! (There would need to be a special check for raising to exponent zero, of course).
comment:4 Changed 13 years ago by
- Milestone changed from sage-4.0.1 to sage-duplicate/invalid/wontfix
- Resolution set to invalid
- Status changed from new to closed
This is now invalid.
---------------------------------------------------------------------- | Sage Version 4.0.1.rc1, Release Date: 2009-06-04 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: sage: factor(-1) -1 sage: sage: (factor(-1))^2 1 sage: sage: (factor(-1)^2).value() == -1 False
Note: See
TracTickets for help on using
tickets.
Some discussion in email: