[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-06 05:08:18 +00:00
parent cc5911a3ad
commit 162595b8a6

View File

@ -33,7 +33,7 @@ def safe_function_eval(func_str):
Returns: Returns:
float: The evaluated function result. float: The evaluated function result.
""" """
x = symbols('x') x = symbols("x")
func_expr = sympify(func_str) func_expr = sympify(func_str)
# Convert the function to a callable lambda function # Convert the function to a callable lambda function
@ -120,8 +120,9 @@ def compute_solution(add, table, h):
if __name__ == "__main__": if __name__ == "__main__":
from doctest import testmod from doctest import testmod
testmod() testmod()
func, a, b = get_inputs() func, a, b = get_inputs()
acc = 1 acc = 1
solution = None solution = None
@ -132,4 +133,4 @@ if __name__ == "__main__":
solution = compute_solution(add, table, h) solution = compute_solution(add, table, h)
acc *= 10 acc *= 10
print(f'Solution: {solution}') print(f"Solution: {solution}")