oups just sth had been pasted

This commit is contained in:
Lafrite 2014-12-23 10:39:31 +01:00
parent 3f7cac0ddc
commit f301b7f0ae

View File

@ -447,7 +447,6 @@ class Polynom(object):
steps.append(p) steps.append(p)
steps += p.simplify() steps += p.simplify()
[< Polynom [0, 0, 0, 0, 0, 0, 1]>]
else: else:
if power == 2: if power == 2:
return [[self, self, op.mul]] + self * self return [[self, self, op.mul]] + self * self
@ -499,10 +498,9 @@ def test(p,q):
if __name__ == '__main__': if __name__ == '__main__':
#from .fraction import Fraction #from .fraction import Fraction
Expression.set_render(txt) Expression.set_render(txt)
p = Polynom([1, 2]) p = Polynom([10, -5])
print(p*3) q = Polynom([3, -9])
q = Polynom([0, 0, 1]) print(p-q)
print(q**3)
import doctest import doctest