Skip to content

Commit de0bcea

Browse files
authored
Update gauss-seidel-method.py
1 parent a1633f7 commit de0bcea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/numerical_analysis/gauss-seidel-method.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def gauss_seidel(a: list[list[float]], b: list[float], tol: float = 1e-10, max_i
1616
>>> b = [4,7,3]
1717
>>> gauss_seidel(A, b)
1818
[0.5, 1.0, 0.5]
19+
20+
Wikipedia : https://en.wikipedia.org/wiki/Gauss%E2%80%93Seidel_method
1921
"""
2022
n = len(a)
2123
x = [0.0] * n

0 commit comments

Comments
 (0)