The secant method for finding roots of functions.
For a list of all members of this type, see SecantRootFinder Members.
System.Object
numerics4net.IterativeMethod
numerics4net.root.SecantRootFinder
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:
SecantRootFinder finder = new SecantRootFinder(sine);
Lastly, locating roots is accomplished using the FindRoot method:
// find the root close to 3 and 4. double pi = finder.findRoot(3.0, 4.0); // find the root close to -1 and 1. double zero = finder.findRoot(-1.0, 1.0);
References:
Namespace: numerics4net.root
Assembly: numerics4net-1.2 (in numerics4net-1.2.dll)