(x: float)
| 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 |
no outgoing calls
no test coverage detected