X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=dunshire%2Fmatrices.py;h=6d5bbc8f667dce05feb93ec9fabcf42340f1157e;hb=299bf2d606eb245ec78f2e20826836c0bb5bfc07;hp=29c5867aabe544f768a1b1ce3862f14c0a316712;hpb=f2d4185b8c1a263500848554d4283c7ec3201b1c;p=dunshire.git diff --git a/dunshire/matrices.py b/dunshire/matrices.py index 29c5867..6d5bbc8 100644 --- a/dunshire/matrices.py +++ b/dunshire/matrices.py @@ -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)) @@ -422,10 +422,6 @@ def condition_number(mat): Examples -------- - >>> condition_number(identity(1, typecode='d')) - 1.0 - >>> condition_number(identity(2, typecode='d')) - 1.0 >>> condition_number(identity(3, typecode='d')) 1.0