# default example 
xx = bisection.method() 
xx$root  # solution
# a cubic curve 
f = function(x) x^3 - 7 * x - 10 
xx = bisection.method(f, c(-3, 5)) 
# interaction: use your mouse to select the end-points 
bisection.method(f, c(-3, 5), interact = TRUE) 
# HTML animation pages 
ani.start()
bisection.method(saveANI = TRUE, width = 600, height = 500)
ani.stop()Run the code above in your browser using DataLab