Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/matrix/matrix_double_dense.pyx, src/sage/symbolic/constants_…
Browse files Browse the repository at this point in the history
…c_impl.pxi: Increase tolerances for RDF matrix exp
  • Loading branch information
Matthias Koeppe committed Jul 29, 2022
1 parent 8f5860a commit 7aec01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix_double_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3639,7 +3639,7 @@ cdef class Matrix_double_dense(Matrix_numpy_dense):
sage: A = matrix(RDF, 2, [1,2,3,4]); A
[1.0 2.0]
[3.0 4.0]
sage: A.exp() # tol 1e-15
sage: A.exp() # tol 3e-15
[51.968956198705044 74.73656456700327]
[112.10484685050491 164.07380304920997]
sage: A = matrix(CDF, 2, [1,2+I,3*I,4]); A
Expand All @@ -3652,7 +3652,7 @@ cdef class Matrix_double_dense(Matrix_numpy_dense):
TESTS::
sage: A = matrix(RDF, 2, [1,2,3,4])
sage: A.exp() # tol 1e-15
sage: A.exp() # tol 3e-15
[51.968956198705044 74.73656456700327]
[112.10484685050491 164.07380304920997]
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/constants_c_impl.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ cdef class E(Expression):
[e 0]
[0 e]
sage: A = matrix(RDF, [[1,2],[3,4]])
sage: e^A # rel tol 1e-15
sage: e^A # rel tol 3e-15
[51.968956198705044 74.73656456700327]
[112.10484685050491 164.07380304920997]
"""
Expand Down

0 comments on commit 7aec01a

Please sign in to comment.