From 57bc2355aa3f9df8f6512dec2f82415194453c1f Mon Sep 17 00:00:00 2001 From: Lafrite Date: Fri, 22 May 2015 15:44:43 +0200 Subject: [PATCH] add $$ around root in tbl_sgn_header --- pymath/polynomDeg2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymath/polynomDeg2.py b/pymath/polynomDeg2.py index 1f76e1d..ac223be 100644 --- a/pymath/polynomDeg2.py +++ b/pymath/polynomDeg2.py @@ -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$}"