Skip to content

Commit

Permalink
Lecture 5: Fix IntervalArithmetic fields access (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasschmitz authored Nov 20, 2024
1 parent fd570c3 commit 90e356d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/05_Floating_point_arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1162,10 +1162,10 @@ typeof(four_thirds)
md"""This is a Julia interval, which has two fields `lo` and `hi`, representing the interval [`lo`, `hi`]."""

# ╔═╡ 21495bca-2cb2-458b-a7d0-3c4fd1470d1b
four_thirds.lo # The Float64 number smaller than 4/3
four_thirds.bareinterval.lo # The Float64 number smaller than 4/3

# ╔═╡ 23d35d53-20a4-42a1-828d-823dbfa14aa2
four_thirds.hi # The Float64 number larger than 4/3
four_thirds.bareinterval.hi # The Float64 number larger than 4/3

# ╔═╡ 6142c138-d5dc-4e62-8d1a-9df8f8f8c7cd
md"""On top of this we define our operations on these intervals in a way the *containment property* is guaranteed. For example the difference between two intervals $\mathbf{x}$ and $\mathbf{y}$ is computed, such that it satisfies the following property:
Expand Down

0 comments on commit 90e356d

Please sign in to comment.