diff --git a/docs/matrices.rst b/docs/matrices.rst index b17f7542..a3485a2c 100644 --- a/docs/matrices.rst +++ b/docs/matrices.rst @@ -426,9 +426,9 @@ Examples:: >>> A = mp.matrix([[3, -1, 2], [2, 5, -5], [-2, -3, 7]]) >>> Q, R = mp.schur(A) >>> mp.nprint(R, 3) - [2.0 0.417 -2.53] - [0.0 4.0 -4.74] - [0.0 0.0 9.0] + [2.0 0.417 2.53] + [0.0 4.0 4.74] + [0.0 0.0 9.0] >>> print(mp.chop(A - Q * R * Q.transpose_conj())) [0.0 0.0 0.0] [0.0 0.0 0.0] diff --git a/mpmath/matrices/eigen.py b/mpmath/matrices/eigen.py index 54438252..4c61d4eb 100644 --- a/mpmath/matrices/eigen.py +++ b/mpmath/matrices/eigen.py @@ -511,9 +511,9 @@ def schur(ctx, A, overwrite_a = False): >>> A = mp.matrix([[3, -1, 2], [2, 5, -5], [-2, -3, 7]]) >>> Q, R = mp.schur(A) >>> mp.nprint(R, 3) - [2.0 0.417 -2.53] - [0.0 4.0 -4.74] - [0.0 0.0 9.0] + [2.0 0.417 2.53] + [0.0 4.0 4.74] + [0.0 0.0 9.0] >>> print(mp.chop(A - Q * R * Q.transpose_conj())) [0.0 0.0 0.0] [0.0 0.0 0.0]