language: R
license: GPL 2

Code for Snippet:

bisect<-function(f, a, b, eps=1e-15, itmax=100, verbose = TRUE) {
if (f(a) * f(b) > 0) 
	stop("opposite signs at endpoints")()
env <- new.env()
environment(f) <- env
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 655
Date Added: 2013-03-07 16:45:21
Last Modified: 2013-04-17 22:12:20

Web Analytics