From 4296242afd7f625efb6e3cf9a7c81ed8a3ac0f80 Mon Sep 17 00:00:00 2001 From: Lafrite Date: Sat, 7 Mar 2015 11:05:15 +0100 Subject: [PATCH] mod __tex__ and __txt__ for Polynom --- pymath/polynom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymath/polynom.py b/pymath/polynom.py index ebc9223..eb31271 100644 --- a/pymath/polynom.py +++ b/pymath/polynom.py @@ -6,7 +6,7 @@ from .expression import Expression from .explicable import Explicable from .operator import op from .generic import spe_zip, expand_list, isNumber, transpose_fill, flatten_list, isPolynom, isNumerand -from .render import txt +from .render import txt,tex from .random_expression import RdExpression from itertools import chain from functools import wraps @@ -171,10 +171,10 @@ class Polynom(Explicable): return "< Polynom " + str(self._coef) + ">" def __txt__(self): - return self.postfix_tokens + return txt(self.postfix_tokens) def __tex__(self): - return self.postfix_tokens + return tex(self.postfix_tokens) def coef_postfix(self, a, i): """Return the postfix display of a coeficient