An NDoc Documented Class Library

FalsePositionRootFinder Class

The false position method for finding roots of functions.

For a list of all members of this type, see FalsePositionRootFinder Members.

System.Object
   numerics4net.IterativeMethod
      numerics4net.root.FalsePositionRootFinder

public class FalsePositionRootFinder : IterativeMethod

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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:

FalsePositionRootFinder finder = new FalsePositionRootFinder(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:

  1. Eric W. Weisstein. "Method of False Position." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/MethodofFalsePosition.html

Requirements

Namespace: numerics4net.root

Assembly: numerics4net-1.2 (in numerics4net-1.2.dll)

See Also

FalsePositionRootFinder Members | numerics4net.root Namespace