add $$ around root in tbl_sgn_header
This commit is contained in:
parent
fc4d8d19f3
commit
57bc2355aa
@ -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$}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user