[sage-support] Action of a Group

2011-06-18 Thread ObsessiveMathsFreak
I want to use sage to investigate the action of a group on a particular "set" which is being permuted. Specifically I want to look at the orbits of particular objects under the action of the group. The group I'm looking at is the symmetry group of the square: G=DihedralGroup(4) I want to apply t

[sage-support] Re: function id() in Sage performs different than id() in Python

2011-06-18 Thread Nils Bruin
On Jun 18, 10:30 am, tvn wrote: > in particular sage's id()  gives different results (memory) address  for the > below examples whereas python's id() gives the same  (expected) Sage uses a shell that is different from python's (sage uses IPython), and keeps a history. So while in python the memor

[sage-support] function id() in Sage performs different than id() in Python

2011-06-18 Thread tvn
in particular sage's id() gives different results (memory) address for the below examples whereas python's id() gives the same (expected) sage: version() 'Sage Version 4.7, Release Date: 2011-05-23' sage: id(lambda x: x+1) 4516762400 sage: id(lambda x: x+1) 4516761800 sage:

Re: [sage-support] Element in Finite Field

2011-06-18 Thread Yaser Abbasi
I am using Sage Online ! and result of runnig the code is : ('b : ', 0) ('b : ', 0) ('b : ', 0) ('b : ', 0) ('b : ', 1) ('b : ', 1) ('b : ', 0) ('b : ', 0) ('b : ', 1) ('b : ', 0) ('b : ', 1) ('b : ', 0) ('b : ', 1) ('b : ', 0) ('b : ', 0) ('b : ', -1) [0, a, a + 1, 1] On Sat, Jun 18, 2011 at 9:

Re: [sage-support] Element in Finite Field

2011-06-18 Thread Tom Boothby
Yaser, which version of Sage are you using? I'm using 4.6, and I don't see the behavior you're reporting. -- Tom On Sat, Jun 18, 2011 at 9:08 AM, Yaser Abbasi wrote: > Please see this Function : > def D_f_a(f,G): >     ABX_Array = [] >     for c in G: >         for x in G: >             b =

Re: [sage-support] Element in Finite Field

2011-06-18 Thread Yaser Abbasi
Please see this Function : def D_f_a(f,G): ABX_Array = [] for c in G: for x in G: b = f(x+c)-f(x) print("b : ",b) ABX_Array.append((c,b,x)) return ABX_Array #/// If calling that with f(x) = x**3 an

Re: [sage-support] Element in Finite Field

2011-06-18 Thread Tom Boothby
Looks to me like you haven't explicitly defined a, so it's implicitly defined as in var('a'). Instead, sage: f(x) = x sage: G = GF(4,'a') sage: a = G.gen() sage: f(a) - f(a+1) 1 On Sat, Jun 18, 2011 at 8:07 AM, Yaser Abbasi wrote: > Hi, > > According to this function, Is there any function in s

[sage-support] Element in Finite Field

2011-06-18 Thread Yaser Abbasi
Hi, According to this function, Is there any function in sage that element b {"b = f(x+a) - f(x)} on GF(p^n) (p is prime) must be into G, For example : f(x) = x G = GF(2^2,'a') G.list() = {0,1,a,a+1} then f(a) - f(a+1) = -1 must be one of {0,1,a,a+1} Thx, -- To post to this group, sen

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-18 Thread Jean-Pierre Flori
This is now #11521. On 16 juin, 17:13, Jean-Pierre Flori wrote: > The following piece of code also seems to leak memory. > The problem seems to occur while resolving the action of ZZ on E. > > sage: K = GF(1<<55,'t') > sage: a = K.random_element() > sage: while 1: > :     E = EllipticCurve(j=