On Apr 6, 2012, at 06:54 , ArturZ wrote:
> First of all I say that these are my first steps in SAGE.
Welcome to Sage. Enjoy the ride!
> I want to define a function f(x,y), where x,y in GF(q), q=2^3 and next
> check all possible values of this function (for all x,y in GF(q)). Details
> about the function in attachment.
> Could you give me some advices how can I do it in SAGE?
> Any help will be highly appreciated.
You can treat the finite field GF(q) as an "iterator" (a python construct), so
this should work for you:
F=GF(q)
for e in F:
for g in F:
print f(e,g)
HTH
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
--
Democracy is two wolves and a lamb
voting on what to have for lunch.
Liberty is a well-armed lamb contesting
the vote.
--
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