Element-wise operations: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1,297:
 
=={{header|Maple}}==
<lang Maple># Built-in element-wise operator ~
# Built-in element-wise operator ~
 
#addition
Line 1,315 ⟶ 1,314:
<1,2,0; 7,2,7; 6,11,3>^~5;</lang>
{{Out|Output}}
<pre>
<lang Maple>
Matrix(2, 3, [[3, 4, 5], [6, 7, 8]])
Matrix(2, 4, [[-2, -1, -3, 0], [-4, -6, -6, -3]])
</lang>
Matrix(2, 4, [[8, 12, 4, 16], [0, -8, -8, 4]])
Matrix(3, 4, [[1, 3/2, 7/2, 9/2], [3, 4, 2, 5/2], [7/2, 0, 5, 11/2]])
Matrix(3, 3, [[1, 32, 0], [16807, 32, 16807], [7776, 161051, 243]])
</langpre>
 
 
Anonymous user