Skip to content

Commit 162595b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc5911a commit 162595b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

maths/weddles_rule.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def safe_function_eval(func_str):
3333
Returns:
3434
float: The evaluated function result.
3535
"""
36-
x = symbols('x')
36+
x = symbols("x")
3737
func_expr = sympify(func_str)
3838

3939
# Convert the function to a callable lambda function
@@ -120,8 +120,9 @@ def compute_solution(add, table, h):
120120

121121
if __name__ == "__main__":
122122
from doctest import testmod
123+
123124
testmod()
124-
125+
125126
func, a, b = get_inputs()
126127
acc = 1
127128
solution = None
@@ -132,4 +133,4 @@ def compute_solution(add, table, h):
132133
solution = compute_solution(add, table, h)
133134
acc *= 10
134135

135-
print(f'Solution: {solution}')
136+
print(f"Solution: {solution}")

0 commit comments

Comments
 (0)