add $$ around root in tbl_sgn_header

This commit is contained in:
Lafrite 2015-05-22 15:44:43 +02:00
parent fc4d8d19f3
commit 57bc2355aa
1 changed files with 2 additions and 2 deletions

View File

@ -156,9 +156,9 @@ class Polynom_deg2(Polynom):
def tbl_sgn_header(self):
""" Return header of the sign line for tkzTabLine"""
if self.delta > 0:
return "{$-\\infty$, " + str(min(self.roots())) + " , " + str( max(self.roots())) + " , $+\\infty$}"
return "{$-\\infty$, $" + str(min(self.roots())) + "$ , $" + str( max(self.roots())) + "$ , $+\\infty$}"
elif self.delta == 0:
return "{$-\\infty$, " + str(self.roots()[0]) + " , $+\\infty$}"
return "{$-\\infty$, $" + str(self.roots()[0]) + "$ , $+\\infty$}"
else:
return "{$-\\infty$, $+\\infty$}"