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

2010-03-06 Thread yujia chiu
fine for me (version 4.2.1): sage: F.x=GF(2^8,x) sage: (x+1).multiplicative_order() 51 sage: (x+1)^30 x^5 + x^3 + x^2 sage: (x^5+x^3+x^2).log(x+1) 30 cheers, Alasdair On Mar 5, 11:03 pm, yujia chiu woodc...@gmail.com wrote: Dear all, I tried to compute the logarithm of b based

[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 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

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