Skip to content

Commit daea179

Browse files
Update matrix_inversion.py
1 parent be71e2f commit daea179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: linear_algebra/matrix_inversion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def invert_matrix(matrix: list[list[float]]) -> list[list[float]]:
2020

2121

2222
if __name__ == "__main__":
23-
mat = [[4, 7], [2, 6]]
23+
mat = [[4.0, 7.0], [2.0, 6.0]]
2424
print("Original Matrix:")
2525
print(mat)
2626
print("Inverted Matrix:")

0 commit comments

Comments
 (0)