All published worksheets from http://sagenb.org
L=matrix([[0,1,0.5],[0.9,0,0],[0,0.8,0]]);L
-1*L.charpoly()