if product or mul takes as arguments
l1 and l2
(two lists or two matrices), product or mul returns
the term by term product of the elements of l1 and
l2.
Input :
product([2,3,4],[5,6,7])
Or :
mul([2,3,4],[5,6,7])
Output :
[10,18,28]
Input :
product([[2,3,4],[5,6,7]],[[2,3,4],[5,6,7]])
Or :
mul([[2,3,4],[5,6,7]],[[2,3,4],[5,6,7]])
Output :
[[4,9,16],[25,36,49]]