Finds a root of the given function within the given interval.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  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

IOneVariableRootFinder..::.Find(OneVariableFunction, Interval)

Remarks

Requires that the function evaluated at the two bounds be of opposite signs.
CopyC#
sign( f( interval.Min )) != sign( f( interval.Max ))

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.NMathException Thrown if a root is not found.

See Also