Skip to content

Commit f75688a

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

maths/numerical_analysis/weierstrass_method.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ def weierstrass_method(
3535
>>> def check(poly, degree, expected):
3636
... roots = weierstrass_method(poly, degree)
3737
... return np.allclose(np.sort(roots), np.sort(expected))
38-
38+
3939
>>> check(lambda x: x**2 - 1, 2, np.array([-1, 1]))
4040
True
41-
41+
4242
>>> check(lambda x: x**3 - 4.5*x**2 + 5.75*x - 1.875, 3, np.array([1.5, 0.5, 2.5]))
4343
True
4444
@@ -87,4 +87,4 @@ def weierstrass_method(
8787
if __name__ == "__main__":
8888
import doctest
8989

90-
doctest.testmod()
90+
doctest.testmod()

0 commit comments

Comments
 (0)