|
| 1 | +# The submodule Symbols |
| 2 | + |
| 3 | +IntervalArithmetic.jl includes the submodule `Symbols` to make coding |
| 4 | +a bit simpler with respect to the use of some functions of the |
| 5 | +library. Some examples are provided here. |
| 6 | + |
| 7 | +```julia |
| 8 | +using IntervalArithmetic.Symbols |
| 9 | + |
| 10 | +a = 0 .. 2 |
| 11 | +b = 1 ± 0.5 |
| 12 | +``` |
| 13 | + |
| 14 | +```julia |
| 15 | +a ≛ a |
| 16 | +``` |
| 17 | + |
| 18 | +```julia |
| 19 | +b ⊑ a |
| 20 | +``` |
| 21 | + |
| 22 | +```julia |
| 23 | +b ⋤ a |
| 24 | +``` |
| 25 | + |
| 26 | +```julia |
| 27 | +∅ ⪽ ℝ |
| 28 | +``` |
| 29 | + |
| 30 | +The following table summarizes the functions, the usage with the corresponding |
| 31 | +(unicode) symbols, how to obtain the symbol in Julia, and a brief description |
| 32 | +of the function. |
| 33 | + |
| 34 | +| Function | Symbol | Unicode | Description | |
| 35 | +|------------------------------------|-----------|---------------------|------------------------------------------------------------| |
| 36 | +| `interval(a, b; format=:infsup)` | `..(a,b)` | | Create interval `[a, b]` using bounds | |
| 37 | +| `interval(m, r; format=:midpoint)` | `±(m, r)` | `\pm<tab>` | Create interval `[m - r, m + r]` using midpoint-radius form | |
| 38 | +| `isequal_interval(x, y)` | `≛(x, y)` | `\starequal<tab>` | Check interval equality | |
| 39 | +| `issubset_interval(x, y)` | `⊑(x, y)` | `\sqsubseteq<tab>` | Check if `x` is a (non-strict) subset of `y` | |
| 40 | +| `isstrictsubset(x, y)` | `⋤(x, y)` | `\sqsubsetneq<tab>` | Check if `x` is a strict subset of `y` | |
| 41 | +| `isinterior(x, y)` | `⪽(x, y)` | `\subsetdot<tab>` | Check if `x` is in the interior of `y` | |
| 42 | +| `precedes(x, y)` | `⪯(x, y)` | `\preceq<tab>` | Precedes relation | |
| 43 | +| `strictprecedes(x, y)` | `≺(x, y)` | `\prec<tab>` | Strictly precedes relation | |
| 44 | +| `hull(x, y)` | `⊔(x, y)` | `\sqcup<tab>` | Interval hull of `x` and `y` | |
| 45 | +| `intersect_interval(x, y)` | `⊓(x, y)` | `\sqcap<tab>` | Intersection of intervals | |
| 46 | +| `emptyinterval()` | `∅` | `\emptyset<tab>` | Empty interval | |
| 47 | +| `entireinterval()` | `ℝ` | `\bbR<tab>` | Entire real line | |
0 commit comments