Finds a root within the interval.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public double Find( OneVariableFunction f, Interval interval ) |
| Visual Basic (Declaration) |
|---|
Public Function Find ( _ f As OneVariableFunction, _ interval As Interval _ ) As Double |
| Visual C++ |
|---|
public: virtual double Find( OneVariableFunction^ f, Interval^ interval ) sealed |
Parameters
- f
- Type: CenterSpace.NMath.Core..::.OneVariableFunction
The function.
- interval
- Type: CenterSpace.NMath.Core..::.Interval
The interval.
Return Value
A root of f within interval.Implements
IOneVariableDRootFinder..::.Find(OneVariableFunction, Interval)
Remarks
Iteration stops when either the estimated error is less than the tolerance,
or the maximum number of iterations is reached.
Setting the error tolerance to less than zero ensures that the maximum
number of iterations is always reached.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.NMathException | Thrown if a root is not found. |