Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
26
Task/Matrix-multiplication/SPAD/matrix-multiplication.spad
Normal file
26
Task/Matrix-multiplication/SPAD/matrix-multiplication.spad
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
(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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue