The bisection method for finding roots of functions.
For a list of all members of this type, see BisectionRootFinder Members.
System.Object
numerics4net.IterativeMethod
numerics4net.root.BisectionRootFinder
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
For example, to find roots for sine, first a Function delegate is defined:
Function sine = new Function(Math.Sin);
Then, a root finder is created using the function delegate:
BisectionRootFinder finder = new BisectionRootFinder(sine);
Lastly, locating roots is accomplished using the FindRoot method:
// find the root between 3 and 4. double pi = finder.findRoot(3.0, 4.0); // find the root between -1 and 1. double zero = finder.findRoot(-1.0, 1.0);
References:
Namespace: numerics4net.root
Assembly: numerics4net-1.2 (in numerics4net-1.2.dll)