Jump to content

Matrix multiplication: Difference between revisions

Line 3,532:
29, 40, 51
39, 54, 69</pre>
 
=={{header|SPAD}}==
{{works with|FriCAS, OpenAxiom, Axiom}}
<lang SPAD>
 
(1) -> A:=matrix [[1,2],[3,4],[5,6],[7,8]]
 
+1 2+
| |
|3 4|
(1) | |
|5 6|
| |
+7 8+
Type: Matrix(Integer)
(2) -> B:=matrix [[1,2,3],[4,5,6]]
 
+1 2 3+
(2) | |
+4 5 6+
Type: Matrix(Integer)
(3) -> A*B
 
+9 12 15+
| |
|19 26 33|
(3) | |
|29 40 51|
| |
+39 54 69+
Type: Matrix(Integer)
 
</lang>
 
Domain:[http://fricas.github.io/api/Matrix.html?highlight=matrix Matrix(R)]
 
 
=={{header|SQL}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.