> Do you want the cyclotomic field analog
> ofhttp://www.sagemath.org/doc/html/ref/module-sage.rings.finite-field-e...
> perhaps?
i guess so !
btw i have found a way around my problem, though not an answer to my
question.
See, i was hesitating between an "all-sage" algorithm (sage lists and
sage cyclotomic fields), or an "all-GAP" one (gap lists which start
with 1 instead of 0, and gap's E(n) notation throughout, etc). In the
first case i'd have to convert the answer into GAP, hence my question;
in the second case, i'd have to face the discouraging fact that i
don't know how to add an element to a gap list: for example:
sage: L= gap("[]")
sage: L.Add(1) #creates an error
sage: L.append(1) #also creates an error
However, i have discovered that the GAP function Character() is in
fact happy to process a sage list containing (wrapped) GAP objects. So
in the end I got away with a mixture of sage and GAP, which i guess is
typical ! it does seem funny to write
e= gap( "E(" + str(n) + ")" )
to create the n-th root of unity, but at least it works.
Pierre
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---