#1738 closed defect (duplicate)
[with patch] fraction field __pow__ doesn't handle negative exp. elegantly
Reported by: | jbmohler | Owned by: | was |
---|---|---|---|
Priority: | major | Milestone: | sage-2.10 |
Component: | algebraic geometry | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Negative exponents put fraction field elements in the denominator of a fraction field element.
sage: R.<x>=ZZ[] sage: (1/x)^-3 1/(1/x^3)
With the patch:
sage: R.<x>=ZZ[] sage: (1/x)^-3 x^3
Attachments (1)
Change History (4)
Changed 13 years ago by
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
- Resolution set to duplicate
- Status changed from new to closed
comment:3 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
It looks good to me except change the somewhat too verbose
to one of the following (take your pick):
or
or
I think it is important that the docstrings give illustrations of good usage of Sage.