secantMethod: Secant method root finding

Description Usage Arguments Value

View source: R/spline.R

Description

Secant method root finding

Usage

1
secantMethod(f, x1, x2, maxIter, targetError)

Arguments

f

The function to optimise to zero. Must take exactly 1 parameter

x1

First guess

x2

Second guess

maxIter

Maximum number of iterations to run for

targetError

Maximum error before the solution will be accepted as correct

Value

X value which returns zero. If root finding fails, returns NA


klapaukh/hangler documentation built on May 20, 2019, 11:04 a.m.