Interval
Interval record
let i = {a = 1m; b = 2m }
a
is expected to be less or equal b
Record Fields
Record Field | Description |
a
Signature:decimal
|
Lower bound |
b
Signature:decimal
|
Upper bound |
Instance members
Instance member | Description |
Middle
Signature:decimal
|
Middle point between |
Static members
Static member | Description |
( - )(x, y)
Signature:(x:decimal * y:Interval) -> Interval
|
Subtract decimal |
( - )(x, y)
Signature:(x:Interval * y:decimal) -> Interval
|
Subtract decimal |
( - )(x, y)
Signature:(x:Interval * y:Interval) -> Interval
|
Subtract |
( * )(x, y)
Signature:(x:decimal * y:Interval) -> Interval
|
Multiply interval |
( * )(x, y)
Signature:(x:Interval * y:decimal) -> Interval
|
Multiply interval |
( * )(x, y)
Signature:(x:Interval * y:Interval) -> Interval
|
Multiply |
( / )(x, y)
Signature:(x:decimal * y:Interval) -> Interval
|
Divide interval |
( / )(x, y)
Signature:(x:Interval * y:decimal) -> Interval
|
Divide interval |
( / )(x, y)
Signature:(x:Interval * y:Interval) -> Interval
|
Divide |
( + )(x, y)
Signature:(x:decimal * y:Interval) -> Interval
|
Add interval |
( + )(x, y)
Signature:(x:Interval * y:decimal) -> Interval
|
Add interval |
( + )(x, y)
Signature:(x:Interval * y:Interval) -> Interval
|
Add |
distance(x, y)
Signature:(x:Interval * y:Interval) -> decimal
|
Distance between |
operation(f (x, y))
Signature:(f:(decimal -> decimal -> decimal)) -> (x:Interval * y:Interval) -> Interval
|
Generic binary operation over two intervals compliant with pivotal rule of interval mathematics - operation should result in widest possible interval |
pow(x, p)
Signature:(x:Interval * p:double) -> Interval
|
Rises |
Zero
Signature:Interval
|
Interval with |
zeroLength(x)
Signature:x:decimal -> Interval
|
Creates interval of zero length |