View source: R/MixtureFitting.R
polyroot_NR | R Documentation |
Finds one real polynomial root using Newton–Raphson method, implemented according to Wikipedia.
polyroot_NR( p, init = 0, epsilon = 1e-6, debug = FALSE, implementation = "C" )
p |
vector of polynomial coeficients. |
init |
initial value. |
epsilon |
tolerance threshold for convergence. |
debug |
flag to turn the debug prints on/off. |
implementation |
flag to switch between C (default) and R implementations. |
Real polynomial root.
Andrius Merkys
Users of Wikipedia. Newton's method. https://en.wikipedia.org/w/index.php?title=Newton%27s_method&oldid=710342140
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.