From 6777f1ebd3b997f190e27705b4d2d67f89a34dcc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:38:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/series/logarithmic_series.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maths/series/logarithmic_series.py b/maths/series/logarithmic_series.py index 1c541aec4..c1bf7a265 100644 --- a/maths/series/logarithmic_series.py +++ b/maths/series/logarithmic_series.py @@ -36,7 +36,9 @@ def logarithmic_series(x_value: float, n_terms: int = 5, expand: bool = False) - n_times_x_minus_1 *= x_value - 1 else: sign: str = "-" if (-1) ** (n + 1) == -1 else "" - term: str = sign + "(" + str(x_value - 1) + "^" + str(n) + ")" + "/" + str(n) + term: str = ( + sign + "(" + str(x_value - 1) + "^" + str(n) + ")" + "/" + str(n) + ) if term.startswith("-(-"): term = "(" + term[3::] elif term.startswith("(-"):