Skip to content

Commit 0038a69

Browse files
committed
Minimalistic documentation for the submodule Symbols, and docs
1 parent 4931394 commit 0038a69

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ makedocs(;
2222
"Manual" => [
2323
"Constructing intervals" => "manual/construction.md",
2424
"Usage" => "manual/usage.md",
25+
"Symbols" => "manual/symbols.jl",
2526
"Interfaces" => [
2627
"Arblib.jl" => "manual/interfaces/Arblib.md"
2728
],

docs/src/manual/symbols.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

Comments
 (0)