You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'd say these methods should be implemented, building on conjugate. Perhaps the functions will pick the methods up if they do exist, even though #17116 makes me far from certain on this point right now.
Furthermore, if asked explicitely then these objects know that they are not real:
sage: E3.is_real()
False
So the real function might want to call such an is_real method if it exists, and make sure not to simply return its argument if that method returns False.
In #18152, I reimplemented the universal cyclotomic field using libgap (faster and more reliable). In that version the issue disappears. My goal would be to close this ticket as "won't fix" as soon as #18152 would be reviewed.
This is certainly wrong:
This is probably due to the fact that
real
andimag
aren't methods of this class, even thoughconjugate
seems to work correctly.So I'd say these methods should be implemented, building on
conjugate
. Perhaps the functions will pick the methods up if they do exist, even though #17116 makes me far from certain on this point right now.Furthermore, if asked explicitely then these objects know that they are not real:
So the
real
function might want to call such anis_real
method if it exists, and make sure not to simply return its argument if that method returnsFalse
.Component: number fields
Issue created by migration from https://trac.sagemath.org/ticket/17117
The text was updated successfully, but these errors were encountered: