MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / func

Function func

maths/numerical_analysis/newton_raphson.py:107–108  ·  view source on GitHub ↗
(x: float)

Source from the content-addressed store, hash-verified

105 doctest.testmod()
106
107 def func(x: float) -> float:
108 return tanh(x) ** 2 - exp(3 * x)
109
110 solution, err, steps = newton_raphson(
111 func, x0=10, max_iter=100, step=1e-6, log_steps=True

Callers 13

call_funcFunction · 0.85
benchmark_a_functionFunction · 0.85
benchmark_a_functionFunction · 0.85
differentiateFunction · 0.85
time_funcFunction · 0.85
runge_kutta_fehlberg_45Function · 0.85
runge_kutta_gillsFunction · 0.85
truth_tableFunction · 0.85
hash_Method · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected