Elementary.Max Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Max(Double[]) | Returns the largest value in an array using IEEE-754r semantics. |
Max(Single[]) | Returns the largest value in an array using IEEE-754r semantics. |
Max( | Returns the largest of two numbers using IEEE-754r semantics. |
Max( | Returns the largest of two numbers using IEEE-754r semantics. |
Max( | Returns the largest of three numbers using IEEE-754r semantics. |
Max( | Returns the largest of three numbers using IEEE-754r semantics. |
Max(Double[])
public static double Max(
params double[] values
)
Parameters
- values Double[]
- An array of real numbers.
Return Value
DoubleThe largest 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.
Max(Single[])
public static float Max(
params float[] values
)
Parameters
- values Single[]
- An array of real numbers.
Return Value
SingleThe largest 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.
Max(Double, Double)
public static double Max(
double x,
double y
)
Parameters
Return Value
DoubleThe larger 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 Max(Double, Double) function in the Base Class Libraries.
Max(Single, Single)
Remarks
In accordance with IEEE-754r, NaN is returned only if both x and y are NaN. This behavior is different from the Max(Single, Single) function in the Base Class Libraries.
Max(Double, Double, Double)
public static double Max(
double x,
double y,
double z
)
Parameters
Return Value
DoubleThe larger 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 Max(Double, Double) function in the Base Class Libraries.
Max(Single, Single, Single)
public static float Max(
float x,
float y,
float z
)
Parameters
Return Value
SingleThe larger 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 Max(Single, Single) function in the Base Class Libraries.