home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!ucbvax!MATH.ORST.EDU!pmontgom
- From: pmontgom@MATH.ORST.EDU (Peter Montgomery)
- Newsgroups: comp.theory
- Subject: Warning - Maple V lattice returns non-reduced basis
- Message-ID: <9208250327.AA04859@argus.MATH.ORST.EDU>
- Date: 26 Aug 92 15:45:42 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Reply-To: Peter Montgomery <pmontgom@MATH.ORST.EDU>
- Lines: 21
-
- # The lattice basis {v1, v2} where
-
- # v1 = [ 5, 7] squared norm 74
- # v2 = [-3, 7] squared norm 58
-
- # is not row-reduced, because
- # v1 - v2 = [8, 0] has squared norm 64 < 74.
- # However, Maple V's lattice function
- # returns a basis with the two input vectors.
-
- # The problem seems to occur sometimes when
-
- # dot(v1, v1) > 2 |dot(v1, v2)| > dot(v2, v2)
-
- readlib(lattice);
- v1 := [ 5, 7];
- v2 := [-3, 7];
-
- outvecs1 := lattice(v1, v2); # Fails to return reduced basis
- outvecs2 := lattice(v2, v1); # OK if smaller vector is input first
- quit;
-