Finds a root of the given function within the given interval.
Namespace:
CenterSpace.NMath.AnalysisAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public double Find( OneVariableFunction f, double lower, double upper ) |
| Visual Basic (Declaration) |
|---|
Public Function Find ( _ f As OneVariableFunction, _ lower As Double, _ upper As Double _ ) As Double |
| Visual C++ |
|---|
public: virtual double Find( OneVariableFunction^ f, double lower, double upper ) sealed |
Parameters
- f
- Type: CenterSpace.NMath.Core..::.OneVariableFunction
The function.
- lower
- Type: System..::.Double
The lower bound.
- upper
- Type: System..::.Double
The upper bound.
Return Value
A root of f within the interval between lower and upper.Implements
IOneVariableRootFinder..::.Find(OneVariableFunction, Double, Double)
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.NMathException | Thrown if a root is not found. |