Macro inari::dec_interval [−][src]
macro_rules! dec_interval { ($s : expr) => { ... }; ($a : expr, $b : expr) => { ... }; }
Expand description
Creates a DecInterval
from f64
bounds or from a decorated interval literal.
In case of a failure, it returns a Result<DecInterval>
instead of a DecInterval
.
If the construction is invalid,
an Err
with IntervalErrorKind::UndefinedOperation
is returned.
If it cannot determine whether the construction is valid or not,
IntervalErrorKind::PossiblyUndefinedOperation
is returned.
-
dec_interval!(a, b)
Creates a decorated interval $[a, b]$ with the strongest decoration, where
a
andb
aref64
values.The conditions $a β€ b$, $a < +β$ and $b > -β$ must be held.
-
dec_interval!(s)
Creates a decorated interval from a decorated interval literal.
s
must be a string slice (&str
).
For creating a constant, the macro const_dec_interval!
should be preferred over this one.