# HG changeset patch
# User Rob Beezer
# Date 1301203798 25200
# Node ID 5d01988f9583105f427d87ad1883dfea3a77135a
# Parent e1e4e5f6b5a93486408ce74e6d7339c2237e5740
10791: doctest edits for Gram-Schmidt routines
diff -r e1e4e5f6b5a9 -r 5d01988f9583 sage/matrix/matrix2.pyx
--- a/sage/matrix/matrix2.pyx Sat Feb 26 17:27:56 2011 -0800
+++ b/sage/matrix/matrix2.pyx Sat Mar 26 22:29:58 2011 -0700
@@ -6361,7 +6361,7 @@
to arrive at an orthonormal set, it must be possible to construct
square roots of the elements of the base field. In Sage, your
best option is the field of algebraic numbers, ``QQbar``, which
- properly contain the rationals and number fields.
+ properly contains the rationals and number fields.
If you have an approximate numerical matrix, then this routine
requires that your base field be the real and complex
@@ -6441,8 +6441,8 @@
To scale a vector to unit length requires taking
a square root, which often takes us outside the base ring.
- For the integers, and rationals the field of algebraic numbers,
- ``QQbar``, is big enough to contain what we need, but the price
+ For the integers and the rationals, the field of algebraic numbers
+ (``QQbar``) is big enough to contain what we need, but the price
is that the computations are very slow, hence mostly of value
for small cases or instruction. Now we need to use the
``orthonormal`` keyword. ::
diff -r e1e4e5f6b5a9 -r 5d01988f9583 sage/modules/misc.py
--- a/sage/modules/misc.py Sat Feb 26 17:27:56 2011 -0800
+++ b/sage/modules/misc.py Sat Mar 26 22:29:58 2011 -0700
@@ -64,6 +64,9 @@
sage: from sage.modules.misc import gram_schmidt
sage: V = [vector(ZZ,[1,1]), vector(ZZ,[2,2]), vector(ZZ,[1,2])]
sage: gram_schmidt(V)
+ Traceback (most recent call last):
+ ...
+ ValueError: linearly dependent input for module version of Gram-Schmidt
"""
import sage.modules.free_module_element
if len(B) == 0 or len(B[0]) == 0: