Element-wise operations: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,297: | Line 1,297: | ||
=={{header|Maple}}== |
=={{header|Maple}}== |
||
<lang Maple> |
<lang Maple># Built-in element-wise operator ~ |
||
# Built-in element-wise operator ~ |
|||
#addition |
#addition |
||
Line 1,315: | Line 1,314: | ||
<1,2,0; 7,2,7; 6,11,3>^~5;</lang> |
<1,2,0; 7,2,7; 6,11,3>^~5;</lang> |
||
{{Out|Output}} |
{{Out|Output}} |
||
<pre> |
|||
<lang Maple> |
|||
Matrix(2, 3, [[3, 4, 5], [6, 7, 8]]) |
Matrix(2, 3, [[3, 4, 5], [6, 7, 8]]) |
||
Matrix(2, 4, [[-2, -1, -3, 0], [-4, -6, -6, -3]]) |
|||
⚫ | |||
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]]) |
|||
⚫ | |||