Meta.Numerics Library
FromEndpoints Method (a, b)
Meta.NumericsMeta.NumericsIntervalFromEndpoints(Double, Double)
Creates a new interval, given its endpoints.
Declaration Syntax
C#Visual BasicVisual C++F#
public static Interval FromEndpoints(
	double a,
	double b
)
Public Shared Function FromEndpoints ( _
	a As Double, _
	b As Double _
) As Interval
public:
static Interval FromEndpoints(
	double a, 
	double b
)
static member FromEndpoints : 
        a:float * 
        b:float -> Interval 
Parameters
a (Double)
The left (lower) endpoint of the interval.
b (Double)
The right (upper) endpoint of the interval.
Return Value
The specified interval.
Remarks
If width of the interval is very much smaller than its endpoint values, accuracy will be better maintained by constructing the interval using one endpoint and its width.