Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ f
Function
f
maths/numerical_analysis/secant_method.py:9–14 ·
view source on GitHub ↗
>>> f(5) 39.98652410600183
(x: float)
Source
from the content-addressed store, hash-verified
7
8
9
def
f(x: float) -> float:
10
""
"
11
>>> f(5)
12
39.98652410600183
13
""
"
14
return
8 * x - 2 * exp(-x)
15
16
17
def
secant_method(lower_bound: float, upper_bound: float, repeats: int) -> float:
Callers
1
secant_method
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected