Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Doctest for arb220
  • Loading branch information
jan-janssen committed Sep 18, 2021
commit edc28bd45de6db51facaf870182640fa912fb728
2 changes: 1 addition & 1 deletion src/flint/acb_mat.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ cdef class acb_mat(flint_mat):
>>> sum(acb_mat(arb_mat.hilbert(20,20)).eig(nonstop=True))
nan + nanj
>>> showgood(lambda: sum(acb_mat(arb_mat.hilbert(20,20)).eig(nonstop=True)), parts=False)
2.47967321036454 + [+/- 1.48e-56]j
2.47967321036454 + 0e-55j

With default options, the method only succeeds if all eigenvalues can be
isolated. Multiple (overlapping) eigenvalues can be handled by
Expand Down
8 changes: 4 additions & 4 deletions src/flint/arb_mat.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,10 @@ cdef class arb_mat(flint_mat):
magnitude have been replaced by exact zeros.

>>> print(arb_mat.stirling(4, 4).inv().str(5, radius=False))
[1.0000, 0, 0, 0]
[ 0, 1.0000, [+/- 1.20e-15], [+/- 5.00e-16]]
[ 0, -1.0000, 1.0000, [+/- 1.67e-16]]
[ 0, 1.0000, -3.0000, 1.0000]
[1.0000, 0, 0, 0]
[ 0, 1.0000, 0e-14, 0e-15]
[ 0, -1.0000, 1.0000, 0e-15]
[ 0, 1.0000, -3.0000, 1.0000]
>>> print(arb_mat.stirling(4, 4).inv().chop(1e-6).str(5, radius=False))
[1.0000, 0, 0, 0]
[ 0, 1.0000, 0, 0]
Expand Down