Ticket #3927 (closed enhancement: fixed)
[with new patch, positive review] Several enhancements and bug fixes for Factorization class
| Reported by: | cremona | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-3.1.2 |
| Component: | basic arithmetic | Keywords: | factorization |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
This works:
sage: factor(10)*factor(15)^(-1) 2 * 3^-1
and so does this:
sage: factor(10/15) 2 * 3^-1
but not this:
sage: factor(10)/factor(15) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/john/sage-3.1.test/spkg/build/python-2.5.2.p3/tmp/<ipython console> in <module>() TypeError: unsupported operand type(s) for /: 'Factorization' and 'Factorization'
So: Factorizations can be multiplied and inverted but not divided, which is a bit silly. I suggest adding a __div___() method.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

