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

Check whether the element in Ideal #62

Closed
kirtsar opened this issue Feb 7, 2020 · 3 comments
Closed

Check whether the element in Ideal #62

kirtsar opened this issue Feb 7, 2020 · 3 comments

Comments

@kirtsar
Copy link

kirtsar commented Feb 7, 2020

Qx, x = QQ["X"]
Qi, a = NumberField(x^2 + 1)
Zi = maximal_order(Qi)
I = (1 + i)^2 * Zi
in(2, I)                   # not working
in(ZZ(2), I)            # not working
in(Zi(2), I)             # not working
in(Qi(2), I)            # only this happen to work

2 // (1 + i)^2         # works
Zi(2) // (1 + i)^2   # not working
@thofma
Copy link
Owner

thofma commented Feb 7, 2020

Yes, they should all work. Thanks for reporting this!

You probably know it, but // will always return something outside the ring and you can use divexact and divides to do division in the ring.

@kirtsar
Copy link
Author

kirtsar commented Feb 7, 2020

@thofma
No, I didn't know it, thanks!

@CarloSircana
Copy link
Collaborator

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants