#13612: padic elements can not be initialized from residue field
-------------------------------------------+-----------------------------
Reporter: saraedum | Owner: roed
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-6.3
Component: padics | Resolution:
Keywords: sd59 | Merged in:
Authors: Julian Rueth | Reviewers:
Report Upstream: N/A | Work issues:
Branch: u/saraedum/ticket/13612 | Dependencies:
Stopgaps: |
-------------------------------------------+-----------------------------
Changes (by saraedum):
* keywords: => sd59
* status: new => needs_review
Old description:
> In some cases a padic element can not be initialized from the zero of the
> residue field:
>
> {{{
> sage: K=Qp(3)
> sage: R.<a> = K[]
> sage: L.<a> = K.extension(a^2+1)
> sage: L(L.residue_field().one())
> 1 + O(3)
> sage: L(L.residue_field().zero())
> TypeError: cannot convert x to a p-adic element
> }}}
>
> The attached patch fixes this issue.
New description:
In some cases a padic element can not be initialized from the zero of the
residue field.
{{{
sage: K=Qp(3)
sage: R.<a> = K[]
sage: L.<a> = K.extension(a^2+1)
sage: L(L.residue_field().one())
1 + O(3)
sage: L(L.residue_field().zero())
TypeError: cannot convert x to a p-adic element
}}}
The attached patch fixes this issue.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/13612#comment:6>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.