Module optmath
Simple math helper functions
Functions
Math.tmin (tab, func) | Returns the minimum element of a table. |
Math.tmax (tab, func) | Returns the maximum element of a table. |
Functions
- Math.tmin (tab, func)
-
Returns the minimum element of a table.
The optional argument func specifies a one-argument ordering function.
Parameters:
- tab table
- func func
Returns:
-
dynamic
minimum element of a table
- Math.tmax (tab, func)
-
Returns the maximum element of a table.
The optional argument func specifies a one-argument ordering function.
Parameters:
- tab table
- func func
Returns:
-
dynamic
maximum element of a table