[sage-support] On computing logarithm in a finite field

2010-03-05 Thread yujia chiu
Dear all, I tried to compute the logarithm of b based a in a finite field. But it seemed that the b.log(a) command in sage only works when a generates the multiplicative group of the finite field. Unfortunately, my a doesn't, although I already showed that b is indeed a power of a. Could you

Re: [sage-support] On computing logarithm in a finite field

2010-03-05 Thread David Joyner
Did you also try discrete_log(a,b)? On Fri, Mar 5, 2010 at 7:03 AM, yujia chiu woodc...@gmail.com wrote: Dear all, I tried to compute the logarithm of b based a in a finite field. But it seemed that the b.log(a) command in sage only works when a generates the multiplicative group of the

Re: [sage-support] On computing logarithm in a finite field

2010-03-05 Thread yujia chiu
Thanks for your advice, but my sage says that 'discrete_log' is not defined :( On 5 March 2010 13:21, David Joyner wdjoy...@gmail.com wrote: Did you also try discrete_log(a,b)? On Fri, Mar 5, 2010 at 7:03 AM, yujia chiu woodc...@gmail.com wrote: Dear all, I tried to compute the

Re: [sage-support] On computing logarithm in a finite field

2010-03-05 Thread Minh Nguyen
Hi Yujia, On Fri, Mar 5, 2010 at 11:58 PM, yujia chiu woodc...@gmail.com wrote: Thanks for your advice, but my sage says that 'discrete_log' is not defined [mv...@sage ~]$ sage -- | Sage Version 4.3.3, Release Date: 2010-02-21

Re: [sage-support] On computing logarithm in a finite field

2010-03-05 Thread yujia chiu
Dear Minh, Thanks a lot. On 5 March 2010 14:06, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Yujia, On Fri, Mar 5, 2010 at 11:58 PM, yujia chiu woodc...@gmail.com wrote: Thanks for your advice, but my sage says that 'discrete_log' is not defined [mv...@sage ~]$ sage