IntervalFromEndpoints Method |
Creates a new interval, given its endpoints.
Namespace:
Meta.Numerics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax 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
- Type: SystemDouble
The left (lower) endpoint of the interval. - b
- Type: SystemDouble
The right (upper) endpoint of the interval.
Return Value
Type:
IntervalThe 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