Skip to content

Commit 2ec488a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7cd8f05 commit 2ec488a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

maths/radix2_fft.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ def __multiply(self):
158158

159159
# Overwrite __str__ for print(); Shows A, B and A*B
160160
def __str__(self):
161-
a = "A = " + " + ".join(
162-
f"{coef}*x^{i}" for i, coef in enumerate(self.polyA[: self.len_A])
163-
)
164-
b = "B = " + " + ".join(
165-
f"{coef}*x^{i}" for i, coef in enumerate(self.polyB[: self.len_B])
166-
)
167-
c = "A*B = " + " + ".join(
168-
f"{coef}*x^{i}" for i, coef in enumerate(self.product)
169-
)
161+
a = "A = " + " + ".join(
162+
f"{coef}*x^{i}" for i, coef in enumerate(self.polyA[: self.len_A])
163+
)
164+
b = "B = " + " + ".join(
165+
f"{coef}*x^{i}" for i, coef in enumerate(self.polyB[: self.len_B])
166+
)
167+
c = "A*B = " + " + ".join(
168+
f"{coef}*x^{i}" for i, coef in enumerate(self.product)
169+
)
170170

171171
return f"{a}\n{b}\n{c}"
172172

0 commit comments

Comments
 (0)