Skip to content
Prev 166625 / 398502 Next

How to get solution of following polynomial?

On Sun, Jan 11, 2009 at 6:03 AM, RON70 <ron_michael70 at yahoo.com> wrote:
Use curve to plot the curve of your function. Then, see where the
roots are, and use uniroot with a small interval around the roots to
determine their exact value.

Example:

f <- function(x) x^2-1
curve(f,-5,5)
uniroot(f,c(-2,-0.2))
uniroot(f,c(0.2,2))

Paul