newtonRoot: solve for roots using the NR update rule x1 = x0 −...

View source: R/mathsUtils.R

newtonRootR Documentation

solve for roots using the NR update rule x1 = x0 − f(x0)/f'(x0)

Description

solve for roots using the NR update rule x1 = x0 − f(x0)/f'(x0)

Usage

newtonRoot(f, df, x0, tol = 0.00001, maxit = 20)

apoorvalal/LalRUtils documentation built on Sept. 22, 2023, 5:53 p.m.