Interval.Subtract Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Subtract(Double, Interval) Returns an interval negated and shifted to the right by a specified value.
Subtract(Interval, Interval) Returns the sum of two intervals.
Subtract(Interval, Double) Returns an interval shifted to the left by a specified value.

Subtract(Double, Interval)

Returns an interval negated and shifted to the right by a specified value.
C#
public static Interval Subtract(
	double shift,
	Interval interval
)

Parameters

shift  Double
A real number.
interval  Interval
An Interval.

Return Value

Interval
The interval whose bounds are the difference between shift and the bounds of interval.

Subtract(Interval, Interval)

Returns the sum of two intervals.
C#
public static Interval Subtract(
	Interval interval1,
	Interval interval2
)

Parameters

interval1  Interval
An Interval.
interval2  Interval
An Interval.

Return Value

Interval
The interval whose bounds are the difference between the bounds of interval1 and interval2.

Subtract(Interval, Double)

Returns an interval shifted to the left by a specified value.
C#
public static Interval Subtract(
	Interval interval,
	double shift
)

Parameters

interval  Interval
An Interval.
shift  Double
A real number.

Return Value

Interval
The interval whose bounds are the difference between the bounds of interval and shift.

See Also