Matrix Multiplication bug and workaround

hh hh at hyperhh.de
Sun Jul 30 17:00:21 EDT 2017


Hi Al.

This is not a bug, your script is wrong.

If TM is a,b,c,d,e,f then you have to do

   put item 1 of pArgs into tMatrix[0,0]
   put item 2 of pArgs into tMatrix[1,0]
   put item 3 of pArgs into tMatrix[0,1]
   put item 4 of pArgs into tMatrix[1,1]

this yields correct results.

[In fact your 'workaround' corrects the wrong script part]

Hermann





More information about the Use-livecode mailing list