On Apr 5, 8:26 pm, Dana Ernst <ernst.tr...@gmail.com> wrote:
> Wow, thanks for all the feedback.  I learned a lot today!
>
> On Apr 5, 2010, at 5:31 PM, Alec Mihailovs wrote:

> > u=[n for n in U if gcd(n,40)==1]

By the way, one has to be careful using some of the methods of U. In
particular,

sage: u1=U.list_of_elements_of_multiplicative_group()
sage: u==u1
                    True
but

sage: type(u[0])

         < type 'sage.rings.integer_mod.IntegerMod_int' >

type(u1[0])

        < type 'int' >

and using u1 instead of u would produce a different result.

Alec



-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.

Reply via email to