Element-wise operations: Difference between revisions

Content deleted Content added
Add Haskell - Element-wise operations
Line 982: Line 982:
</lang> And similarly for <tt>+</tt>, <tt>-</tt>, <tt>%</tt> (division), and <tt>^</tt> .
</lang> And similarly for <tt>+</tt>, <tt>-</tt>, <tt>%</tt> (division), and <tt>^</tt> .


=={{header|Mathematica}}==
=={{header|Mathematica}} / {{header|Wolfram Language}}==
<lang Mathematica>S = 10 ; M = {{7, 11, 13}, {17 , 19, 23} , {29, 31, 37}};
<lang Mathematica>S = 10 ; M = {{7, 11, 13}, {17 , 19, 23} , {29, 31, 37}};
M + S
M + S