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

Commit

Permalink
Trac 13711: add a doctest to the method charpoly
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Apr 14, 2015
1 parent f0f7b3a commit 005cd02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/matrix/matrix_symbolic_dense.pyx
Expand Up @@ -427,6 +427,11 @@ cdef class Matrix_symbolic_dense(matrix_generic_dense.Matrix_generic_dense):
sage: Matrix(SR, [[sqrt(x), x],[1,x]]).charpoly().list()
[x^(3/2) - x, -x - sqrt(x), 1]
Test that :trac:`13711` is fixed::
sage: matrix([[sqrt(2), -1], [pi, e^2]]).charpoly()
x^2 + (-sqrt(2) - e^2)*x + pi + sqrt(2)*e^2
"""
cache_key = 'charpoly'
cp = self.fetch(cache_key)
Expand Down

0 comments on commit 005cd02

Please sign in to comment.