Jump to content

Matrix multiplication: Difference between revisions

m
m (→‎{{header|SPAD}}: "works with" takes only a single implementation as argument)
m (→‎{{header|Liberty BASIC}}: Formatted output)
Line 2,350:
MatrixP$ =MatrixMultiply$( MatrixA$, MatrixB$)
call DisplayMatrix MatrixP$
</lang>
 
Product of two matrices<br>
{{out}}
| 1.00000 1.00000 1.00000 1.00000 |<br>
<pre>Product of two matrices<br>
| 2.00000 4.00000 8.00000 16.00000 |<br>
| 31.00000 91.00000 271.00000 811.00000 |<br>
| 42.00000 164.00000 648.00000 25616.00000 |<br>
| 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>
| 14.5000000000 -23.00000 1.1666733333 -0.25000 |<br>
| -04.1666733333 04.2500075000 -02.1666733333 0.0416745833 |<br>
| 41.0000050000 -32.00000 1.3333316667 -0.25000 |<br>
<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>
| 01.00000 0.00000 10.00000 0.00000 |<br>
| 0.00000 01.00000 0.00000 10.00000 |<br>
| 20.00000 40.00000 81.00000 160.00000 |<br>
| 10.00000 10.00000 10.00000 1.00000 |<br/pre>
 
=={{header|Logo}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.