Skip to content

Commit

Permalink
Trac #27615: py3: use of "round" in matrix_double_dense.pyx
Browse files Browse the repository at this point in the history
Use `N(...)` instead of `round(...)` in a doctest in
matrix_double_dense.pyx, so py3 doctests pass.

URL: https://trac.sagemath.org/27615
Reported by: jhpalmieri
Ticket author(s): John Palmieri
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager authored and vbraun committed Apr 7, 2019
2 parents 9681903 + e21825c commit f396e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/matrix/matrix_double_dense.pyx
Expand Up @@ -2078,7 +2078,7 @@ cdef class Matrix_double_dense(Matrix_dense):
sage: S.round(4)
[ 9.508 0.0 0.0]
[ 0.0 0.7729 0.0]
sage: [round(sqrt(abs(x)),4) for x in (S*S.transpose()).eigenvalues()]
sage: [N(sqrt(abs(x)), digits=4) for x in (S*S.transpose()).eigenvalues()]
[9.508, 0.7729]
U and V are orthogonal matrices::
Expand Down

0 comments on commit f396e44

Please sign in to comment.