Skip to content

Commit 6a7b326

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent c67776d commit 6a7b326

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

arithmetic_analysis/newton_raphson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from sympy import diff
99

1010

11-
def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float:
11+
def newton_raphson(func: str, a: int, precision: int = 10 ** -10) -> float:
1212
""" Finds root from the point 'a' onwards by Newton-Raphson method
1313
>>> newton_raphson("sin(x)", 2)
1414
3.1415926536808043

dynamic_programming/coin_change.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def dp_count(S, m, n):
3636

3737
return table[n]
3838

39+
3940
if __name__ == "__main__":
4041
import doctest
4142

other/integeration_by_simpson_approx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def simpson_integration(function, a: float, b: float, precision: int = 4) -> flo
111111

112112
for i in range(1, N_STEPS):
113113
a1 = a + h * i
114-
result += function(a1) * (4 if i%2 else 2)
114+
result += function(a1) * (4 if i % 2 else 2)
115115

116116
result *= h / 3
117117
return round(result, precision)

0 commit comments

Comments
 (0)