-
-
Notifications
You must be signed in to change notification settings - Fork 601
abs floor ceil for quadratic number field #13256
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
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Does the removal of
as an example mean that one couldn't use this syntax at all any more? Would number fields from quadratics not automatically be quadratic fields (when mathematically appropriate, I'm excluding |
comment:3
Replying to @kcrisman:
This syntax is still available. The patch only aims to implement methods abs, floor and ceil for quadratic elements. As an example
It is yet possible (without the patch) to do
But there is a simpler and faster way to do it compared to what floor does (using the real interval field with finer and finer approximations). Note that if the method .floor is present, the the function floor will use it!
Yes, it is the way it is
|
This comment has been minimized.
This comment has been minimized.
comment:5
The patch now takes care of the new doctest framework (ie replace "..." by "....:" for multiline tests). |
comment:6
I have made a short review patch, with correct links to trac and raise statements. |
Attachment: trac_13256_details-review.patch.gz |
Reviewer: Frédéric Chapoton |
comment:7
ok, looks good to me. Positive review. |
comment:8
Replying to @fchapoton:
Cool. Thanks Frédéric. |
Merged: sage-5.11.beta0 |
Implementation of absolute value (abs), floor (floor) and ceiling (ceil) function for elements in quadratic number field.
The implementation uses only manipulation of (mpz) integers.
The function abs depends on the function sign implemented in ticket #13213.
Depends on #13213
CC: @mwhansen @burcin
Component: number fields
Keywords: absolute value, floor, ceiling, quadratic
Author: Vincent Delecroix
Reviewer: Frédéric Chapoton
Merged: sage-5.11.beta0
Issue created by migration from https://trac.sagemath.org/ticket/13256
The text was updated successfully, but these errors were encountered: