Newton: Newton()

Description Usage Arguments Value

Description

Find the root of a polynomial function.

Usage

1
Newton(f, h = 0.01, tol = 1e-12, x0 = 1, maxiter)

Arguments

f

A function to be evaluated.

h

Optional parameter. The step size. Default 0.01.

tol

Optional parameter. The error tolerance for the function appriximation. Default 1e-12.

x0

Optional parameter. Initial value. Default 1.

maxiter

Maximum number of iterations before exit.

Value

List containing iteration values, the estimated root, and the number of terations used to estimate the root.


jspinney-nbimc/mqim6604 documentation built on May 25, 2019, 6:25 p.m.