[GAP Forum] how to do matrix multiplication of polynomial for input as ideal after load singular package
Alexander Hulpke
hulpke at math.colostate.edu
Wed Sep 24 16:13:52 BST 2014
Dear Forum,
On Sep 24, 2014, at 9/24/14 4:12, Lee Martin CCNP <tesleft at hotmail.com> wrote:
> Hi,
> LoadPackage("singular");onelist := Tuples([0,1,0,1,0,1],3);onelist2 := [];Append( onelist2, onelist );Append( onelist2, onelist );Append( onelist2, onelist );matrixlist := Tuples(onelist2,3);
> R1:= PolynomialRing( Rationals, ["x","y","z"] : new );;x:=IndeterminatesOfPolynomialRing(R1)[1];y:=IndeterminatesOfPolynomialRing(R1)[2];z:=IndeterminatesOfPolynomialRing(R1)[3];
> hello:=Matrix([[x,y,z]])*Matrix(matrixlist[1]); <- got error at here
I'm not sure what `Matrix' is supposed to do. If you call:
hello:=[[x,y,z]]*matrixlist[1];
everything works fine.
Regards,
Alexander Hulpke
More information about the Forum
mailing list