home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / theory / 1827 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1011 b 

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!ucbvax!MATH.ORST.EDU!pmontgom
  2. From: pmontgom@MATH.ORST.EDU (Peter Montgomery)
  3. Newsgroups: comp.theory
  4. Subject: Warning - Maple V lattice returns non-reduced basis
  5. Message-ID: <9208250327.AA04859@argus.MATH.ORST.EDU>
  6. Date: 26 Aug 92 15:45:42 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Reply-To: Peter Montgomery <pmontgom@MATH.ORST.EDU>
  9. Lines: 21
  10.  
  11. #       The lattice basis {v1, v2} where
  12.  
  13. #           v1 = [ 5,  7]      squared norm 74
  14. #           v2 = [-3,  7]      squared norm 58
  15.  
  16. #       is not row-reduced, because
  17. #       v1 - v2 = [8, 0] has squared norm 64 < 74.
  18. #       However,  Maple V's lattice function
  19. #       returns a basis with the two input vectors.
  20.  
  21. #       The problem seems to occur sometimes when
  22.  
  23. #       dot(v1, v1) > 2 |dot(v1, v2)| > dot(v2, v2)
  24.  
  25. readlib(lattice);
  26. v1 := [ 5, 7];
  27. v2 := [-3, 7];
  28.  
  29. outvecs1 := lattice(v1, v2);    # Fails to return reduced basis
  30. outvecs2 := lattice(v2, v1);    # OK if smaller vector is input first
  31. quit;
  32.