newton_solver_1d
newton_solver_1d(f, xStart, [max_steps], [eps]) ⇒ number
Newtonian solver, works by moving along the curve in the direction of gradient. Solving for f(x) = 0
Kind: global function
Returns: number
- value for X where function is close to 0 or exactly at 0
Param | Type | Description |
---|---|---|
f | function | Function for which we are trying to solve |
xStart | number | initial guess for input value |
[max_steps] | number | |
[eps] | number |