Creates a new interval, given its endpoints.

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)

Syntax

            
 C#  Visual Basic  Visual 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.

See Also