Question: Galois Field - "use Field in"- directive

Hello everybody,

I am using the GF package from Maple to solve an equation with elements of a given galois field. It looks like that:

field := GF(7, 1):

eq1 := x = y^2:
eq2 := x^2 = y^4:
equationToUse := eq1:

isSolving := false:
use field in  
    isSolving := is(eval(equationToUse, [x=field:-random(), y=field:-random()]));
end use:

if isSolving then
    print(`Equation solved`);
end if:
 

I would like to exchange to evaled equation due changing the equationToUse variable, but i always receive the error message:
"Error, invalid input: eval expects its 2nd argument, eqns, to be of type {equation, integer, set(equation)}, but received [=[1](x,random()), =[1](y,random())]"

Has anybody an idea how to solve that problem?
Thanks a lot !

King regards
Rainer

 

Please Wait...