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. In both cases, the error contains a NaI as a reasonable fallback value.

  • dec_interval!(a, b)

    Creates a decorated interval $[a, b]$ with the strongest decoration, where a and b are f64 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.