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

to_number_field should be idempotent for single extension #14294

Open
skirpichev opened this Issue Feb 20, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@skirpichev
Copy link
Contributor

skirpichev commented Feb 20, 2018

In [1]: to_number_field(I)
Out[1]: ⅈ

In [2]: to_number_field(_1)
Out[2]: ⅈ

In [3]: srepr(_1)
Out[3]: 'AlgebraicNumber(I, [Integer(1), Integer(0)])'

In [4]: srepr(_2)
Out[4]: 'AlgebraicNumber(AlgebraicNumber(I, [Integer(1), Integer(0)]), [Integer(1), Integer(0)])'

skirpichev added a commit to skirpichev/diofant that referenced this issue Feb 20, 2018

skirpichev added a commit to skirpichev/diofant that referenced this issue Apr 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment