home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / l / linalg.zip / HW01.HW < prev    next >
Text File  |  1989-05-26  |  880b  |  10 lines

  1. HOMEWORK 1 
  2.  
  3. Form a 3-dimensional vector with reasonably random components (for example use your street address, birthdate, etc.).  Call this vector u. 
  4.  
  5. We are going to test the randomness of the random vector generator which LINALG uses.  The vector u which you created determines a unique plane P through the origin, perpendicular to u.  A random vector should be on one side of the plane P or the other.  Each side should be equally likely.  The test to determine which side a vector lies on is to take its inner product with u, and to see if it is positive or negative. 
  6.  
  7. Create 10 random 3-dimensional vectors, using the random vector generator of LINALG.  Name these vectors v1,...,v10. Now compute the inner product of u with each of them.  Print the results, and at the top of the page write your name and the numbers of positive and negative inner products. 
  8.  
  9.  
  10.