Fixed typo in combine_polynomes.

parent 7fc730c8
...@@ -79,7 +79,10 @@ def combine_polynomes(root, args): ...@@ -79,7 +79,10 @@ def combine_polynomes(root, args):
n0, n1, c0, c1, r, e = args n0, n1, c0, c1, r, e = args
# a ^ 1 -> a # a ^ 1 -> a
power = r if e == 1 else r ^ e if e == 1:
power = r
else:
power = r ** e
# replacement: (c0 + c1) * a ^ b # replacement: (c0 + c1) * a ^ b
# a, b and c are from 'left', d is from 'right'. # a, b and c are from 'left', d is from 'right'.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment