next up previous contents
Next: Solution Up: Procedures and Modules Previous: Solution

 

Vector Multiplication - Array Valued Function

Write a function Outer that forms the outer product of two vectors. If A and B are vectors then the outer product is a matrix C such that tex2html_wrap_inline3328 .

Write a test program which accepts two integers giving the size of the A and B vectors, uses the RANDOM_NUMBER function to assign values and then prints the outer product.

Go back to Notes gif




next up previous contents
Next: Solution Up: Procedures and Modules Previous: Solution

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.