Skip to content

Commit e9c9f36

Browse files
eviltyphacclauss
andauthored
Update arithmetic_analysis/jacobi_iteration_method.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 5144650 commit e9c9f36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arithmetic_analysis/jacobi_iteration_method.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ def jacobi_iteration_method(
107107
strictly_diagonally_dominant(table)
108108

109109
# Iterates the whole matrix for given number of times
110-
for i in range(0, iterations):
110+
for i in range(iterations):
111111
new_val = []
112-
for row in range(0, rows):
112+
for row in range(rows):
113113
temp = 0
114-
for col in range(0, cols):
114+
for col in range(cols):
115+
115116
if col == row:
116117
denom = table[row][col]
117118
elif col == cols - 1:

0 commit comments

Comments
 (0)