Question: Scheme Programming Question! crossmultiply takes two lists of numbers, each list represents a vector. Returns the outer product of the two vectors. The outer product
Scheme Programming Question!
crossmultiply takes two lists of numbers, each list represents a vector. Returns the outer product of the two vectors. The outer product is a matrix (a list of lists) and each list is the result of multiplying the second list by the corresponding value of the first list.
> (crossmultiply '(1 2 3) '(3 0 2)) ((3 0 2) (6 0 4) (9 0 6)) > (crossmultiply '(8 -1 4 3) '(3 1)) ((24 8) (-3 -1) (12 4) (9 3))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
