Skip to content

Commit 2063129

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

maths/numerical_analysis/gauss_seidel_method.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
def gauss_seidel(a: list[list[float]], b: list[float], tol: float = 1e-10, max_iter: int = 1000) -> list[float]:
1+
def gauss_seidel(
2+
a: list[list[float]], b: list[float], tol: float = 1e-10, max_iter: int = 1000
3+
) -> list[float]:
24
"""
35
Solve the linear system Ax = b using the Gauss-Seidel iterative method.
46

0 commit comments

Comments
 (0)