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
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
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:
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:
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 =
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
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
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
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=