Bill Allombert on Sat, 24 Sep 2005 11:55:44 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: 2 questions ... |
On Fri, Sep 23, 2005 at 10:39:34PM -0700, Justin C. Walker wrote: > > On Sep 23, 2005, at 19:14 , Quique Becerra wrote: > > >Hi > >I'm new to PARI and need to make 2 functions (to do programming) > > If you are comfortable reading english (and your message seems to > indicate that you are), you should spend some time reading the > documentation provided with Pari/gp. It should be helpful for these > kinds of questions. > > >1) X^M mod N > >(using 3 parameters) > > f(X,M,N)=Mod(X^M,N); rather f(X,M,N)=Mod(X,N)^M; Cheers, Bill.