Skip to content

Commit 2319de6

Browse files
committed
fix: doctest floating point precision in invert_matrix
1 parent ebe0046 commit 2319de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linear_algebra/matrix_inversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def invert_matrix(matrix: list[list[float]]) -> list[list[float]]:
1212
list[list[float]]: Inverted matrix if invertible, else raises error.
1313
1414
>>> invert_matrix([[4.0, 7.0], [2.0, 6.0]])
15-
[[0.6000000000000001, -0.7000000000000001], [-0.2, 0.4]]
15+
[[0.6, -0.7000000000000001], [-0.2, 0.4]]
1616
>>> invert_matrix([[1.0, 2.0], [0.0, 0.0]])
1717
Traceback (most recent call last):
1818
...

0 commit comments

Comments
 (0)