Skip to content

Commit 56d6f97

Browse files
committed
barents
1 parent 06586d7 commit 56d6f97

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

maths/numerical_analysis/brent's_method.py renamed to maths/numerical_analysis/brents_method.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import math
21
from collections.abc import Callable
32

43
def brent_method(
@@ -34,7 +33,7 @@ def brent_method(
3433

3534
c = a
3635
fc = fa
37-
d = e = b - a
36+
d = b - a # Only d is used, e removed
3837
mflag = True
3938

4039
for _ in range(max_iter):
@@ -86,4 +85,4 @@ def brent_method(
8685

8786
if __name__ == "__main__":
8887
from doctest import testmod
89-
testmod()
88+
testmod()

0 commit comments

Comments
 (0)