Matrix multiplication: Difference between revisions

→‎TI-89 BASIC: new example
(→‎TI-89 BASIC: new example)
Line 930:
Disp [A]*[B]
An error will show if the matrices have invalid dimensions for multiplication.
 
=={{header|TI-89 BASIC}}==
 
{{trans|Mathematica}}
 
[1,2; 3,4; 5,6; 7,8] → m1
[1,2,3; 4,5,6] → m2
m1 * m2
 
Or without the variables:
 
[1,2; 3,4; 5,6; 7,8] * [1,2,3; 4,5,6]
 
The result (without prettyprinting) is:
 
[[9,12,15][19,26,33][29,40,51][39,54,69]]
 
=={{header|Tcl}}==