 | RootFinderBaseBracketRoot Method |
Attempts to bracket a root given the function and an initial guess
near a suspected root.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic Interval BracketRoot(
OneVariableFunction f,
double x0
)
Public Function BracketRoot (
f As OneVariableFunction,
x0 As Double
) As Interval
public:
Interval^ BracketRoot(
OneVariableFunction^ f,
double x0
)
member BracketRoot :
f : OneVariableFunction *
x0 : float -> Interval
Parameters
- f OneVariableFunction
- The one variable function
- x0 Double
- Initial guess near a root.
Return Value
IntervalA interval.
ExceptionsException | Condition |
---|
NMathException | When attempting to bracket the root before root finding, the function was evaluated outside of
its real domain. Try a new starting point. |
See Also