]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - dunshire/matrices.py
Use "..." for floating point output in doctests.
[dunshire.git] / dunshire / matrices.py
index 94f841d39f888392624077afd12bcdcb7e0c3c19..6d5bbc8f667dce05feb93ec9fabcf42340f1157e 100644 (file)
@@ -330,12 +330,12 @@ def norm(matrix_or_vector):
     --------
 
         >>> v = matrix([1,1])
-        >>> print('{:.5f}'.format(norm(v)))
-        1.41421
+        >>> norm(v)
+        1.414...
 
         >>> A = matrix([1,1,1,1], (2,2))
         >>> norm(A)
-        2.0
+        2.0...
 
     """
     return sqrt(inner_product(matrix_or_vector, matrix_or_vector))