Comment in AttributeError for __pw__
This commit is contained in:
parent
e6170fab97
commit
3f7cac0ddc
@ -447,12 +447,12 @@ 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
|
||||||
else:
|
else:
|
||||||
raise AttributeError("__pw__ not implemented yet")
|
raise AttributeError("__pw__ not implemented yet when power is greatter than 2")
|
||||||
|
|
||||||
return steps
|
return steps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user