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:27 AM, Tom Boothby <[email protected]>wrote:
> 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 <[email protected]>
> wrote:
> > 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 and G = GF(4,'a') ,
> > You will see b = -1 for any x,c
> > and this b is not in G.list() !
> > How can get b in G.list? Is there any function for example
> > "G.iner(f(x+c)-f(x))" that doing that mind ?
> >
> > Thx,
> >
> >
> > On Sat, Jun 18, 2011 at 8:36 AM, Tom Boothby <[email protected]>
> > wrote:
> >>
> >> 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 <[email protected]>
> >> wrote:
> >> > 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, send email to [email protected]
> >> > To unsubscribe from this group, send email to
> >> > [email protected]
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/sage-support
> >> > URL: http://www.sagemath.org
> >> >
> >>
> >> --
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]
> >> For more options, visit this group at
> >> http://groups.google.com/group/sage-support
> >> URL: http://www.sagemath.org
> >
> >
> >
> > --
> >
> >
> >
> >
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Yaser Abbasi
> > AUT university
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/sage-support
> > URL: http://www.sagemath.org
> >
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yaser Abbasi
AUT university
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org