-
Notifications
You must be signed in to change notification settings - Fork 59
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
Surprising comparisons with complex numbers #1072
Comments
Probably more off by 0.7 bugs. |
Note that
works in AbstractAlgebra, so this appears to be a Nemo-exclusive feature. |
The reason this happens is that complex numbers are just not supported outside Arb in Nemo or AbstractAlgebra. It just happens to work in AbstractAlgebra because QQ(1) returns a Julia Rational{BigInt} and Julia has defined an appropriate comparison. In Nemo, the equality test falls back to the default Julia one which just tests if they are the same object. This is a rather massive thing to fix as it means defining ad hoc comparison, binary operations and divisions for every type in AbstractAlgebra and Nemo with complex numbers. You can tell we aren't numerical people can't you. :-) |
It also needs to be fixed for qqbar and ca. |
The text was updated successfully, but these errors were encountered: