On Wed, 17 Jan 2007 03:59:53 -0800, Iftikhar Burhanuddin <[EMAIL PROTECTED]>
wrote:
> William,
>
> Can you elaborate on what you mean by "modern SAGE" constructions and
> "dirty tricks"?
Yes. If you want to compute 2000^100 mod 17 this is a "dirty":
sage: gap.eval("PowerModInt(2000,100,17)")
'4'
whereas this is modern:
sage: 2007 % 17
1
sage: n = 2000
sage: n.powermod(100,17)
4
And this is modern but a little tricky:
sage: n.powermodm_ui(100,17)
4
Basically it would be good to remove most of the
gap.eval('...')
stuff from SAGE constructions if there is a more SAGE-like way to do the same
thing...
and if there isn't, then implement it.
William
--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---