Skip to content

Commit 6652fde

Browse files
committed
Contributes to #9943
1 parent 03a4251 commit 6652fde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

maths/numerical_analysis/intersection.py

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def intersection(function: Callable[[float], float], x0: float, x1: float) -> fl
4242

4343

4444
def f(x: float) -> float:
45+
"""
46+
function is f(x) = x^3 - 2x - 5
47+
>>> f(2)
48+
-1.0
49+
"""
4550
return math.pow(x, 3) - (2 * x) - 5
4651

4752

0 commit comments

Comments
 (0)