Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug raising an integer to a float (probably really easy to fix in integer.pyx!) #1653

Closed
williamstein opened this issue Jan 2, 2008 · 2 comments

Comments

@williamstein
Copy link
Contributor

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

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/1653

@williamstein williamstein added this to the sage-2.10.1 milestone Jan 2, 2008
@sagetrac-dmharvey sagetrac-dmharvey mannequin self-assigned this Jan 2, 2008
@sagetrac-dmharvey
Copy link
Mannequin

sagetrac-dmharvey mannequin commented Jan 2, 2008

Attachment: 1653.hg.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 20, 2008

comment:4

Merged in Sage 2.10.1.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Jan 20, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant