forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-38441: number_field_elements_from_algebraics: Fix Cyclotom…
…icField embedding when embedding=False Fixes sagemath#38440. Uses `.coerce_embedding()` to determine the existence of the embedding and modify the field accordingly, instead of doing what the code does currently (assume the field is unembedded by default). Note that there's a behavior change --- now when `embedding=False` it will return a `NumberField` instead of `CyclotomicField` (even though it is technically possible to create a `CyclotomicField(5, embedding=None)`). I don't think this matters. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. (only part that change is https://doc-pr-38441--sagemath.netlif y.app/html/en/reference/number_fields/sage/rings/qqbar.html#sage.rings.q qbar.number_field_elements_from_algebraics ) URL: sagemath#38441 Reported by: user202729 Reviewer(s): roed314, Travis Scrimshaw, user202729
- Loading branch information
Showing
1 changed file
with
84 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters