Page 1 of 1

(Very easy) Doubt about code.

Posted: Sat Apr 12, 2014 9:21 am
by Eli_Sabeth
Hey guys! I've just started using Magma and I don't get why the following won't work (basically, I want to evaluate a certain polynomial in all points of a vector subspace):

R:=PolynomialRing(GF(2),4);
A:=Matrix(GF(2),2,4,[1,1,1,0,0,0,0,1]);
S:=Matrix(GF(2),2,2,[1,1,1,0]);
V:=VectorSpace(GF(2),2);
B:=S*A;
p:=R.1*R.2+R.3*R.4;
for x in V do
y:=x*B;
Evaluate(p,y);
end for;

I get "Runtime error in 'Evaluate': Bad argument types", but I don't see why. Sorry and thanks a lot!

Re: (Very easy) Doubt about code.

Posted: Mon Apr 14, 2014 11:04 am
by mgates3
I think you have the wrong MAGMA package. See:
http://magma.maths.usyd.edu.au/magma/

This forum is for the GPU-based linear algebra system:
http://icl.utk.edu/magma/
-mark