Opened 12 years ago
Closed 12 years ago
#1653 closed defect (fixed)
[with patch, positive review] Bug raising an integer to a float (probably really easy to fix in integer.pyx!)
Reported by: | was | Owned by: | dmharvey |
---|---|---|---|
Priority: | major | Milestone: | sage-2.10.1 |
Component: | basic arithmetic | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
This is a bug:
sage: 2^float(3.1) --------------------------------------------------------------------------- <type 'exceptions.TypeError'> Traceback (most recent call last) /Users/was/<ipython console> in <module>() /Users/was/integer.pyx in sage.rings.integer.Integer.__pow__() <type 'exceptions.TypeError'>: exponent (=3.1) must be an integer. Coerce your numbers to real or complex numbers first. Note: sage: int(2)^float(3.1) 8.574187700290345 sage: (2/1)^float(3.1) 8.574187700290345
Note that
Attachments (1)
Change History (5)
comment:1 Changed 12 years ago by
- Owner changed from somebody to dmharvey
- Status changed from new to assigned
Changed 12 years ago by
comment:2 Changed 12 years ago by
- Summary changed from Bug raising an integer to a float (probably really easy to fix in integer.pyx!) to [with patch, needs review] Bug raising an integer to a float (probably really easy to fix in integer.pyx!)
comment:3 Changed 12 years ago by
- Summary changed from [with patch, needs review] Bug raising an integer to a float (probably really easy to fix in integer.pyx!) to [with patch, positive review] Bug raising an integer to a float (probably really easy to fix in integer.pyx!)
comment:4 Changed 12 years ago by
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Merged in Sage 2.10.1.alpha0