On Mar 21, 5:01 pm, Martin Albrecht <[email protected]>
wrote:

> sage: K.fetch_int(10)
> a^2 + 1

It's also working only for small fields.

Meanwhile, I found out that int4 returns python int in some cases. In
particular,

sage: type(int4(F.one()))

<type 'int'>

Also, neither int4, nor poly_repr work with 0,

sage: int4(F.zero())

TypeError: reduce() of empty sequence with no initial value

sage: poly_repr(0,F)

TypeError: reduce() of empty sequence with no initial value

So both of them should be corrected by dealing with 0 separately and
converting python int to Sage integers in int4.

Alec Mihailovs



-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to