Elementary.Min Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Min(Double[]) Returns the smallest value in an array using IEEE-754r semantics.
Min(Single[]) Returns the smallest value in an array using IEEE-754r semantics.
Min(Double, Double) Returns the smallest of two numbers using IEEE-754r semantics.
Min(Single, Single) Returns the smallest of two numbers using IEEE-754r semantics.
Min(Double, Double, Double) Returns the smallest of three numbers using IEEE-754r semantics.
Min(Single, Single, Single) Returns the smallest of three numbers using IEEE-754r semantics.

Min(Double[])

Returns the smallest value in an array using IEEE-754r semantics.
C#
public static double Min(
	params double[] values
)

Parameters

values  Double[]
An array of real numbers.

Return Value

Double
The smallest value in values.

Remarks

In accordance with IEEE-754r, NaN is returned only if all elements of values are NaN. This behavior is different from the Max(Double, Double) function in the Base Class Libraries.

Min(Single[])

Returns the smallest value in an array using IEEE-754r semantics.
C#
public static float Min(
	params float[] values
)

Parameters

values  Single[]
An array of real numbers.

Return Value

Single
The smallest value in values.

Remarks

In accordance with IEEE-754r, NaN is returned only if all elements of values are NaN. This behavior is different from the Max(Single, Single) function in the Base Class Libraries.

Min(Double, Double)

Returns the smallest of two numbers using IEEE-754r semantics.
C#
public static double Min(
	double x,
	double y
)

Parameters

x  Double
A real number.
y  Double
A real number.

Return Value

Double
The smaller of x and y.

Remarks

In accordance with IEEE-754r, NaN is returned only if both x and y are NaN. This behavior is different from the Min(Double, Double) function in the Base Class Libraries.

Min(Single, Single)

Returns the smallest of two numbers using IEEE-754r semantics.
C#
public static float Min(
	float x,
	float y
)

Parameters

x  Single
A real number.
y  Single
A real number.

Return Value

Single
The smaller of x and y.

Remarks

In accordance with IEEE-754r, NaN is returned only if both x and y are NaN. This behavior is different from the Min(Single, Single) function in the Base Class Libraries.

Min(Double, Double, Double)

Returns the smallest of three numbers using IEEE-754r semantics.
C#
public static double Min(
	double x,
	double y,
	double z
)

Parameters

x  Double
A real number.
y  Double
A real number.
z  Double
A real number.

Return Value

Double
The smaller of x, y, and z.

Remarks

In accordance with IEEE-754r, NaN is returned only if x, y and z are all NaN. This behavior is different from the Min(Double, Double) function in the Base Class Libraries.

Min(Single, Single, Single)

Returns the smallest of three numbers using IEEE-754r semantics.
C#
public static float Min(
	float x,
	float y,
	float z
)

Parameters

x  Single
A real number.
y  Single
A real number.
z  Single
A real number.

Return Value

Single
The smaller of x, y, and z.

Remarks

In accordance with IEEE-754r, NaN is returned only if x, y and z are all NaN. This behavior is different from the Min(Single, Single) function in the Base Class Libraries.

See Also