polyroot_NR: Find one real polynomial root using Newton-Raphson method.

Description Usage Arguments Value Author(s) References

View source: R/MixtureFitting.R

Description

Finds one real polynomial root using Newton–Raphson method, implemented according to Wikipedia.

Usage

1
    polyroot_NR( p, init = 0, epsilon = 1e-6, debug = FALSE )

Arguments

p

vector of polynomial coeficients.

init

initial value.

epsilon

tolerance threshold for convergence.

debug

flag to turn the debug prints on/off.

Value

Real polynomial root.

Author(s)

Andrius Merkys

References

Users of Wikipedia. Newton's method. https://en.wikipedia.org/w/index.php?title=Newton%27s_method&oldid=710342140


merkys/MixtureFitting documentation built on Feb. 18, 2020, 11:04 a.m.