-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Pushout for real embedded number fields #20746
Comments
Branch: u/vdelecroix/20746 |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:4
Isn't it a bit drastic to declare --- a/src/sage/rings/number_field/number_field_base.pyx
+++ b/src/sage/rings/number_field/number_field_base.pyx
@@ -350,3 +350,7 @@ cdef class NumberField(Field):
else:
raise ValueError("No embedding set. You need to specify a a real embedding.")
+ def _pushout_(self, other):
+ if (isinstance(other, NumberField) and self._embedded_real and
+ (<NumberField>other)._embedded_real):
+ return self.composite_fields(other)[0] This makes the examples in the current branch work just as well (you can see the numerical values after coercing into |
comment:5
Fair enough. Though it is more expensive. |
comment:6
And this is order dependent
versus
|
comment:8
This coercion has its advantages:
Depending on the usage, one may want to get the join of the fields using IMHO, this ticket already fixes an operation that one would naturally want to have at hand. So, I would make this a positive review. |
Reviewer: Jean-Philippe Labbé |
Changed keywords from days74 to days74, days84 |
Changed branch from u/vdelecroix/20746 to |
Implement the following pushout
CC: @jdemeyer @tscrim
Component: number fields
Keywords: days74, days84
Author: Vincent Delecroix
Branch/Commit:
4a52745
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/20746
The text was updated successfully, but these errors were encountered: