-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Extract roots in NumberField if possible #25218
Comments
Author: Brent Baccala |
Commit: |
Branch: u/gh-BrentBaccala/25218 |
comment:2
Regarding the suggestion that
see also #18036. |
comment:3
The following tickets are possibly related.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Sébastien Labbé |
comment:6
I did small spaces fixes. If you agree with my changes, please change the status to positive review. New commits:
|
Changed branch from u/gh-BrentBaccala/25218 to u/slabbe/25218 |
Changed branch from u/slabbe/25218 to |
Replying to @BrentBaccala:
I think this is very unfortunate. In Sage, QQ[i] automatically comes with a complex embedding, for which i2/3 (= exp(iπ/3)) is perfectly well defined. It is really confusing to have a basic operator like See #30783. |
Changed commit from |
NumberField previously evaluated integral powers in the NumberField, and evaluated all fractional powers in the symbolic ring.
This patch makes NumberField attempt to evaluate the fractional power within the field, and only falls back on the symbolic ring if this fails.
There's a few interesting changes in the test suite.
Old code:
New code:
The first change is just cosmetic. The second makes good sense, as Sage is now evaluating an expression it didn't before. The third change is more troubling.
The explanation lies in the definition of I:
In this number field, there is a single cube root of
I
(-I
). Squaring-I
gives us-1
, soI^(2/3)=-1
.My opinion is that the new behavior of NumberField is correct and preferred, but perhaps
I
should be defined in QQbar, not in a NumberField.CC: @slel
Component: algebra
Keywords: NumberField
Author: Brent Baccala
Branch:
17b93d6
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/25218
The text was updated successfully, but these errors were encountered: