#16934: Finite fields coercion bug
----------------------------+------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Description changed by jdemeyer:
Old description:
> The following sequence of commands somehow breaks the coercion framework.
> This is on vanilla Sage 6.4.beta1. The problem only occurs if
> {{{impl="pari_ffelt"}}} is explicitly given, even though that is the
> default:
> {{{
> sage: k.<a> = GF(17^14, impl="pari_ffelt")
> sage: _ = EllipticCurve_from_j(a^584645231109031).cardinality()
> sage: k.<a> = GF(17^14, impl="pari_ffelt")
> sage: _ = EllipticCurve_from_j(a^584645231109031).cardinality()
> TypeError Traceback (most recent call
> last)
> [...]
> TypeError: no coercion defined
> }}}
>
> Remark: the value `a^584645231109031` is chosen to lie in the subfield
> `GF(17^2)`, an elliptic curve over this field is created in the
> `cardinality()` call.
New description:
The following sequence of commands somehow breaks the coercion framework.
This is on vanilla Sage 6.4.beta1. The problem only occurs if
{{{impl="pari_ffelt"}}} is explicitly given, even though that is the
default:
{{{
sage: k.<a> = GF(17^14, impl="pari_ffelt")
sage: _ = EllipticCurve_from_j(a^584645231109031).cardinality()
sage: k.<a> = GF(17^14, impl="pari_ffelt")
sage: E = EllipticCurve_from_j(a^584645231109031)
TypeError Traceback (most recent call
last)
[...]
TypeError: no coercion defined
}}}
Remark: the value `a^584645231109031` is chosen to lie in the subfield
`GF(17^2)`, an elliptic curve over this field is created in the
`cardinality()` call.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16934#comment:1>
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.