Skip to content

Commit 6777f1e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3f47a1f commit 6777f1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

maths/series/logarithmic_series.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def logarithmic_series(x_value: float, n_terms: int = 5, expand: bool = False) -
3636
n_times_x_minus_1 *= x_value - 1
3737
else:
3838
sign: str = "-" if (-1) ** (n + 1) == -1 else ""
39-
term: str = sign + "(" + str(x_value - 1) + "^" + str(n) + ")" + "/" + str(n)
39+
term: str = (
40+
sign + "(" + str(x_value - 1) + "^" + str(n) + ")" + "/" + str(n)
41+
)
4042
if term.startswith("-(-"):
4143
term = "(" + term[3::]
4244
elif term.startswith("(-"):

0 commit comments

Comments
 (0)