solve bug with double simplifyon beta
This commit is contained in:
parent
9a2e6254b8
commit
def0e09851
|
@ -122,7 +122,7 @@ class Polynom_deg2(Polynom):
|
||||||
\\frac{ -1 + 3 }{ 3 }
|
\\frac{ -1 + 3 }{ 3 }
|
||||||
\\frac{ 2 }{ 3 }
|
\\frac{ 2 }{ 3 }
|
||||||
"""
|
"""
|
||||||
return self(self.alpha).simplify()
|
return self(self.alpha)
|
||||||
|
|
||||||
def roots(self, after_coma = 2):
|
def roots(self, after_coma = 2):
|
||||||
""" Compute roots of the polynom
|
""" Compute roots of the polynom
|
||||||
|
@ -226,13 +226,16 @@ class Polynom_deg2(Polynom):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# from .render import txt
|
#from .render import txt
|
||||||
# with Expression.tmp_render(txt):
|
#with Expression.tmp_render(txt):
|
||||||
# P = Polynom_deg2([2, 3, 4])
|
# P = Polynom_deg2([2, 3, 4])
|
||||||
# print(P)
|
# print(P)
|
||||||
|
|
||||||
# print("Delta")
|
# print("\nDelta")
|
||||||
# for i in P.delta.simplify():
|
# for i in P.delta.explain():
|
||||||
|
# print(i)
|
||||||
|
# print("\nBeta")
|
||||||
|
# for i in P.beta.explain():
|
||||||
# print(i)
|
# print(i)
|
||||||
|
|
||||||
import doctest
|
import doctest
|
||||||
|
|
Loading…
Reference in New Issue