Matrix multiplication: Difference between revisions

Content added Content deleted
m (→‎{{header|SPAD}}: "works with" takes only a single implementation as argument)
m (→‎{{header|Liberty BASIC}}: Formatted output)
Line 2,350: Line 2,350:
MatrixP$ =MatrixMultiply$( MatrixA$, MatrixB$)
MatrixP$ =MatrixMultiply$( MatrixA$, MatrixB$)
call DisplayMatrix MatrixP$
call DisplayMatrix MatrixP$
</lang>
</lang>

Product of two matrices<br>
{{out}}
| 1.00000 1.00000 1.00000 1.00000 |<br>
<pre>Product of two matrices
| 2.00000 4.00000 8.00000 16.00000 |<br>
| 3.00000 9.00000 27.00000 81.00000 |<br>
| 1.00000 1.00000 1.00000 1.00000 |
| 4.00000 16.00000 64.00000 256.00000 |<br>
| 2.00000 4.00000 8.00000 16.00000 |
| 3.00000 9.00000 27.00000 81.00000 |
<br>
| 4.00000 16.00000 64.00000 256.00000 |
*<br>

| 4.00000 -3.00000 1.33333 -0.25000 |<br>
*
| -4.33333 4.75000 -2.33333 0.45833 |<br>
| 1.50000 -2.00000 1.16667 -0.25000 |<br>
| 4.00000 -3.00000 1.33333 -0.25000 |
| -0.16667 0.25000 -0.16667 0.04167 |<br>
| -4.33333 4.75000 -2.33333 0.45833 |
| 1.50000 -2.00000 1.16667 -0.25000 |
<br>
| -0.16667 0.25000 -0.16667 0.04167 |
=<br>

| 1.00000 0.00000 0.00000 0.00000 |<br>
=
| 0.00000 1.00000 0.00000 0.00000 |<br>
| 0.00000 0.00000 1.00000 0.00000 |<br>
| 1.00000 0.00000 0.00000 0.00000 |
| 0.00000 0.00000 0.00000 1.00000 |<br>
| 0.00000 1.00000 0.00000 0.00000 |
| 0.00000 0.00000 1.00000 0.00000 |
| 0.00000 0.00000 0.00000 1.00000 |</pre>


=={{header|Logo}}==
=={{header|Logo}}==