0 Members and 1 Guest are viewing this topic.
dividing matrices doesn't really exist..
your equality should be more advanced. rows are multiplications with a scalar, then they're equal too
check if they're consistent by solving them
(row) reduced echelon form could come in handy, this can be done with math.eval i think (but i really don't know what or how it will return then)A = L*UA = Q*R
determinant
adding a scalar to a matrix doesn't work either. You have to add the scalar*identinty^this for substraction
checking for inversability (this can be done in like 25 ways or something, so it should be possible xp )
matrix.det(matrixname)~=0 --same as isinvertable(matrixname)
function on.create() a = {{1,1,2},{2,-3,0}} b = math.eval("rref({{1,1,2},{2,-3,0}})")endfunction on.paint(gc) gc:drawString(b[1][1]..","..b[1][2]..","..b[1][3],0,0,"top") gc:drawString(b[2][1]..","..b[2][2]..","..b[2][3],0,20,"top")end
We can use a calculator for math too??