Limit Module
Creates, compares and formats an inclusive or exclusive limit of a range, and moves a limit to a multiple of an increment.
Functions and values
| Function or value |
Description
|
|
|
|
|
Full Usage:
compOpt comp nn sn ns v1 v2
Parameters:
'a -> 'b -> 'c
nn : 'c
sn : 'c
ns : 'c
v1 : 'a option
v2 : 'b option
Returns: 'c
Type parameters: 'a, 'b, 'c |
Compares two optional values with comp. Returns nn when both are None, sn when only v1 is given and ns when only v2 is given.
|
|
|
|
|
|
|
|
|
|
|
|
Returns a check whether the first limit is greater than or equal to the second limit. isMin1 and isMin2 tell whether each limit is a minimum or a maximum.
Example
val gteMin: (obj -> obj -> obj)
val oneIncl: obj
val twoIncl: obj
|
|
|
|
|
|
|
Full Usage:
map2 fInclIncl fInclExcl fExclIncl fExclExcl lim1 lim2
Parameters:
ValueUnit -> ValueUnit -> 'a
fInclExcl : ValueUnit -> ValueUnit -> 'a
fExclIncl : ValueUnit -> ValueUnit -> 'a
fExclExcl : ValueUnit -> ValueUnit -> 'a
lim1 : Limit
lim2 : Limit
Returns: 'a
Modifiers: inline Type parameters: 'a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
toMultipleOf inclMultOf exclMultOf arg3 min
Parameters:
Set<BigRational> -> BigRational -> RationalX
exclMultOf : Set<BigRational> -> BigRational -> RationalX
arg2 : LimitIncr
min : Limit
Returns: Limit
|
|
|
|
|
|
|
GenPRES