Question: Matrix indexing in Sigma

I am having a problem in indexing a given matrix to be used in sigma. How can I make this work? x-y coordinate method > xy := Matrix(5, 2, {(1, 1) = 10, (1, 2) = 10, (2, 1) = -14, (2, 2) = -2, (3, 1) = -10, (3, 2) = -10, (4, 1) = 4, (4, 2) = -24, (5, 1) = 10, (5, 2) = 10}); > n := LinearAlgebra[RowDimension](xy); = print(`output redirected...`); # input placeholder 5 > > x := LinearAlgebra[Column](xy, 1); = print(`output redirected...`); # input placeholder Vector[column](%id = 194172504) > y := LinearAlgebra[Column](xy, 2); = print(`output redirected...`); # input placeholder Vector[column](%id = 194172568) > > A := (1/2)*(sum(x[i]*y[i+1]-y[i]*x[i+1], i = 1 .. n-1)); %; Error, bad index into Vector __________________________________________________________________________ 2D Math x - Typesetting[delayDotProduct](y, coordinate, true) method xy := Matrix(5, 2, {(1, 1) = 10, (1, 2) = 10, (2, 1) = -14, (2, 2) = -2, (3, 1) = -10, (3, 2) = -10, (4, 1) = 4, (4, 2) = -24, (5, 1) = 10, (5, 2) = 10}) plots[:-pointplot](Matrix(5, 2, {(1, 1) = 10, (1, 2) = 10, (2, 1) = -14, (2, 2) = -2, (3, 1) = -10, (3, 2) = -10, (4, 1) = 4, (4, 2) = -24, (5, 1) = 10, (5, 2) = 10}), style = line) n := LinearAlgebra[RowDimension](xy) = printApplyFunction(Typesetting:-maction(output redirected..., actiontype = "maplesoft.com:label(L183)", view = "label")) 5 x := LinearAlgebra[Column](xy, 1) = printApplyFunction(Typesetting:-maction(output redirected..., actiontype = "maplesoft.com:label(L188)", view = "label")) Vector[column](%id = 194172504) y := LinearAlgebra[Column](xy, 2) = printApplyFunction(Typesetting:-maction(output redirected..., actiontype = "maplesoft.com:label(L193)", view = "label")) Vector[column](%id = 194172568) n - 1 ----- \ 1 ) A := - / (x[i] y[i + 1] - y[i] x[i + 1]) 2 ----- i = 1 % Error, bad index into Vector %
Please Wait...