Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Min(const X: TCplx; const Y: TCplx): TCplx; | Minimum of two numbers. |
| 2 | function Min(const X: TSCplx; const Y: TSCplx): TSCplx; | |
| 3 | function Min(X: Double; Y: Double): Double; | Minimum of two real numbers X and Y. |
| 4 | function Min(X: Double; Y: Integer): Double; | |
| 5 | function Min(X: Integer; Y: Double): Double; | |
| 6 | function Min(X: Integer; Y: Integer): Integer; | Minimum of two integer numbers X and Y. |
| 7 | function Min(X: Integer; Y: Int64): Int64; | |
| 8 | function Min(X: Int64; Y: Integer): Int64; | |
| 9 | function Min(X: Int64; Y: Int64): Int64; | Minimum of two 64bit integer numbers X and Y. |
| 10 | function Min(const X: Single; const Y: Single): Single; | |
| 11 | function Minf(X: Single; Y: Single): Single; |
Overload 1: function Min(const X: TCplx; const Y: TCplx): TCplx;
Minimum of two numbers.
Returns: TCplx (complex) - the minimum of two complex numbers X and Y.
Remarks:
Complex numbers are first compared by the absolute value. If they are equal they are further compared by the unwrapped phase -PI,PI angle.
Overload 2: function Min(const X: TSCplx; const Y: TSCplx): TSCplx;
Overload 3: function Min(X: Double; Y: Double): Double;
Minimum of two real numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
| 2 | Y | Double | scalar |
Returns: Double - the minimum of two real numbers X and Y.
Overload 4: function Min(X: Double; Y: Integer): Double;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
| 2 | Y | Integer |
Returns: Double
Overload 5: function Min(X: Integer; Y: Double): Double;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Integer | |
| 2 | Y | Double | scalar |
Returns: Double
Overload 6: function Min(X: Integer; Y: Integer): Integer;
Minimum of two integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Integer | |
| 2 | Y | Integer |
Returns: Int32 - the minimum of two integer numbers X and Y.
Examples
Uses MtxVecInt;
procedure Example;
var a: TVecInt;
min, ind: integer;
begin
CreateIt(a);
try
a.SetIt([1,2,3,4]);
min := a.Min(ind); //min=1, ind = 0
finally
FreeIt(a);
end
end;
See Also: Math387.Max
Overload 7: function Min(X: Integer; Y: Int64): Int64;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Integer | |
| 2 | Y | Int64 |
Returns: Int64
Overload 8: function Min(X: Int64; Y: Integer): Int64;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int64 | |
| 2 | Y | Integer |
Returns: Int64
Overload 9: function Min(X: Int64; Y: Int64): Int64;
Minimum of two 64bit integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int64 | |
| 2 | Y | Int64 |
Returns: Int64 - the minimum of two 64bit integer numbers X and Y.
See Also: Math387.Max
Overload 10: function Min(const X: Single; const Y: Single): Single;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | |
| 2 | Y | Single |
Returns: Single
Overload 11: function Minf(X: Single; Y: Single): Single;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | scalar |
| 2 | Y | Single | scalar |
Returns: Single