#7016: Bizarre results when taking the mod of a p-adic number
-------------------------------------+-------------------------------------
Reporter: jonhanke | Owner: tbd
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: padics | Resolution:
Keywords: padic, mod, % | Merged in:
Authors: Sandra | Reviewers:
Rozensztajn | Work issues:
Report Upstream: N/A | Commit:
Branch: | e0cf7fea4356258e9b7545b537691fb973ff6d84
u/rozenszt/bizarre_results_when_taking_the_mod_of_a_p_adic_number|
Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:3 roed]:
> This is a consequence of the fact that those two elements have different
parents:
>
> Most rings in sage return an element of the same ring when applying the
operation `%`. The function you want is residue.
>
> There are some tricky questions for `%` and `//` and how they relate.
That may be, but it's still a poor excuse for having "bizarre" results for
`%`. If `%` makes no sense, better disallow it completely.
--
Ticket URL: <http://trac.sagemath.org/ticket/7016#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.