powered by
damped.newton(fun, derf, x0, eps, maxit = 20, damp = seq(0, 40),silent=TRUE)
Conte, S. D., de Boor, C. (1980). Elementary Numerical Analysis: An Algorithmic Approach, third edition. New York: McGraw-Hill Publications.
Ilk, O. (2011). R Yazilimina Giris [Introduction to R Language]. ODTU Yayincilik [METU Press].
f1=function(x) x^3+sqrt(x)-1 df1=function(x) 3*x^2+(1/2)*x^(-1/2) damped.newton(f1,df1,2,10^-10,maxit=40,silent=FALSE)
Run the code above in your browser using DataLab