solve bug with double simplifyon beta

This commit is contained in:
Lafrite 2015-04-21 17:31:23 +02:00
parent d95b520ba0
commit 00c327a52f

View File

@ -122,7 +122,7 @@ class Polynom_deg2(Polynom):
\\frac{ -1 + 3 }{ 3 }
\\frac{ 2 }{ 3 }
"""
return self(self.alpha).simplify()
return self(self.alpha)
def roots(self, after_coma = 2):
""" Compute roots of the polynom
@ -226,13 +226,16 @@ class Polynom_deg2(Polynom):
if __name__ == '__main__':
# from .render import txt
# with Expression.tmp_render(txt):
#from .render import txt
#with Expression.tmp_render(txt):
# P = Polynom_deg2([2, 3, 4])
# print(P)
# print("Delta")
# for i in P.delta.simplify():
# print("\nDelta")
# for i in P.delta.explain():
# print(i)
# print("\nBeta")
# for i in P.beta.explain():
# print(i)
import doctest