mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[Mypy fix] fix secant method (#4501)
* case switch using python * review comments * added type hints * general code format * [mypy] Fix type annotations for secant_method.py * remove bad push
This commit is contained in:
parent
7342b33658
commit
407c979063
@ -26,4 +26,4 @@ def secant_method(lower_bound: float, upper_bound: float, repeats: int) -> float
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(f"Example: {secant_method(1, 3, 2) = }")
|
||||
print(f"Example: {secant_method(1, 3, 2)}")
|
||||
|
Loading…
Reference in New Issue
Block a user