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

Add real() and imag() methods to Integer and Rational #9156

Closed
robertwb opened this issue Jun 6, 2010 · 5 comments
Closed

Add real() and imag() methods to Integer and Rational #9156

robertwb opened this issue Jun 6, 2010 · 5 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Jun 6, 2010

This is useful for consistently handling elements of ZZ, QQ, RR, and CC.

Component: basic arithmetic

Author: Robert Bradshaw

Reviewer: Andrey Novoseltsev

Merged: sage-4.4.4.alpha0

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

@robertwb
Copy link
Contributor Author

robertwb commented Jun 6, 2010

Attachment: 9156-QQ-ZZ-real-imag.patch.gz

@novoselt
Copy link
Member

novoselt commented Jun 6, 2010

Author: Robert Bradshaw

@novoselt
Copy link
Member

novoselt commented Jun 6, 2010

Reviewer: Andrey Novoseltsev

@novoselt
Copy link
Member

novoselt commented Jun 6, 2010

comment:2

A little, but very pleasant change, I find it very annoying when simpler objects don't have "part-accessing methods" of more complicated ones. All doctests pass.

@mwhansen
Copy link
Contributor

mwhansen commented Jun 6, 2010

Merged: sage-4.4.4.alpha0

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

4 participants