Skip to content

Commit cc35a53

Browse files
committed
test: fix doctests after Arb printing changes
1 parent 6a65cfa commit cc35a53

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/flint/acb_mat.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ cdef class acb_mat(flint_mat):
666666
>>> sum(acb_mat(arb_mat.hilbert(20,20)).eig(nonstop=True))
667667
nan + nanj
668668
>>> showgood(lambda: sum(acb_mat(arb_mat.hilbert(20,20)).eig(nonstop=True)), parts=False)
669-
2.47967321036454 + [+/- 1.48e-56]j
669+
2.47967321036454 + 0e-55j
670670
671671
With default options, the method only succeeds if all eigenvalues can be
672672
isolated. Multiple (overlapping) eigenvalues can be handled by

src/flint/arb_mat.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,10 @@ cdef class arb_mat(flint_mat):
616616
magnitude have been replaced by exact zeros.
617617
618618
>>> print(arb_mat.stirling(4, 4).inv().str(5, radius=False))
619-
[1.0000, 0, 0, 0]
620-
[ 0, 1.0000, [+/- 1.20e-15], [+/- 5.00e-16]]
621-
[ 0, -1.0000, 1.0000, [+/- 1.67e-16]]
622-
[ 0, 1.0000, -3.0000, 1.0000]
619+
[1.0000, 0, 0, 0]
620+
[ 0, 1.0000, 0e-14, 0e-15]
621+
[ 0, -1.0000, 1.0000, 0e-15]
622+
[ 0, 1.0000, -3.0000, 1.0000]
623623
>>> print(arb_mat.stirling(4, 4).inv().chop(1e-6).str(5, radius=False))
624624
[1.0000, 0, 0, 0]
625625
[ 0, 1.0000, 0, 0]

0 commit comments

Comments
 (0)