From 162595b8a630e794ab87097182b3b9bbc9cf26c3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 6 Oct 2024 05:08:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/weddles_rule.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/maths/weddles_rule.py b/maths/weddles_rule.py index 03deee89a..6f25a3def 100644 --- a/maths/weddles_rule.py +++ b/maths/weddles_rule.py @@ -33,7 +33,7 @@ def safe_function_eval(func_str): Returns: float: The evaluated function result. """ - x = symbols('x') + x = symbols("x") func_expr = sympify(func_str) # Convert the function to a callable lambda function @@ -120,8 +120,9 @@ def compute_solution(add, table, h): if __name__ == "__main__": from doctest import testmod + testmod() - + func, a, b = get_inputs() acc = 1 solution = None @@ -132,4 +133,4 @@ if __name__ == "__main__": solution = compute_solution(add, table, h) acc *= 10 - print(f'Solution: {solution}') \ No newline at end of file + print(f"Solution: {solution}")