One of the package that is used for finite field at the Maple is use in package. Although the use in package make easy working with the finite field, when the use in package is used in the procedure at the Maple, the procedure made the following error:
Error,
Gis not a module or member
For example consider the shown procedure:
ffield:= proc(x::integer,y::integer,n::integer)
local G,a,b;
G := GF(2, abs(n));
print(G);
a:=G:-input(x);
b:=G:-input(y);
use G in a/b end use;
end proc;
My Question: How to solve this error. I defined $G$ as a module but did not work.
Thanks for any suggestion
Edit: When I run your updated code, the following error made:
=instead of:=– Masacroso Jul 09 '17 at 21:28