Skip to content

Commit 0742400

Browse files
committed
use latest IntervalArithmetic version in docs
1 parent 3eb3935 commit 0742400

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

docs/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
4-
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
54

65
[compat]
76
Documenter = "1"
87
DocumenterCitations = "1.3"
9-
IntervalArithmetic = "0.21, =0.21" # v0.22 changed the output format

docs/src/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ Then, at ``t = 1.0``,
108108
```jldoctest quickstart
109109
julia> A + 1/2 * A^2
110110
2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
111-
[1.0, 4.50001] [-3.0, 2.0]
112-
[-4.0, 2.50001] [-1.0, 9.0]
111+
[1.0, 4.5] [-3.25, 2.5]
112+
[-4.25, 3.0] [-2.25, 9.0]
113113
```
114114
However, that result is not tight. The computation can be performed exactly via
115115
single-use expressions implemented in this library:
116116

117117
```jldoctest quickstart
118118
julia> quadratic_expansion(A, 1.0, 0.5)
119119
2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
120-
[1.0, 4.50001] [-2.0, 1.0]
121-
[-3.0, 1.50001] [1.0, 7.0]
120+
[1.0, 4.5] [-2.0, 1.0]
121+
[-3.0, 1.5] [1.0, 7.0]
122122
```
123123
We now obtain an interval matrix that is strictly included in the one obtained from
124124
the naive multiplication.

src/matrix.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ parameterized in the number field, the interval type, and the matrix type.
1818
### Examples
1919
2020
```jldoctest
21-
julia> A = IntervalMatrix([-1 .. -0.8 0 .. 0; 0 .. 0 -1 .. -0.8])
21+
julia> A = IntervalMatrix([interval(-1, -0.8) interval(0); interval(0) interval(-1, -0.8)])
2222
2×2 IntervalMatrix{Float64, Interval{Float64}, Matrix{Interval{Float64}}}:
23-
[-1.0, -0.7999999] [0.0, 0.0]
24-
[0.0, 0.0] [-1.0, -0.7999999]
23+
[-1.0, -0.8] [0.0, 0.0]
24+
[0.0, 0.0] [-1.0, -0.8]
2525
```
2626
2727
An interval matrix proportional to the identity matrix can be built using the

0 commit comments

Comments
 (0)