IntervalArithmetic.jl icon indicating copy to clipboard operation
IntervalArithmetic.jl copied to clipboard

Add `floatmin` and `floatmax`

Open dlfivefifty opened this issue 3 years ago • 5 comments

dlfivefifty avatar Jun 15 '21 09:06 dlfivefifty

Codecov Report

Merging #477 (055d231) into master (a3dc27f) will decrease coverage by 0.10%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #477      +/-   ##
==========================================
- Coverage   91.55%   91.44%   -0.11%     
==========================================
  Files          25       25              
  Lines        1752     1754       +2     
==========================================
  Hits         1604     1604              
- Misses        148      150       +2     
Impacted Files Coverage Δ
src/IntervalArithmetic.jl 100.00% <ø> (ø)
src/intervals/arithmetic.jl 96.42% <0.00%> (-0.78%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a3dc27f...055d231. Read the comment docs.

codecov-commenter avatar Jun 15 '21 10:06 codecov-commenter

What's the use case for this?

dpsanders avatar Jun 15 '21 13:06 dpsanders

Currently there's

julia> @interval(Inf)
[1.79769e+308, ∞]

(Note that in general we now prefer using interval(a, b) instead of @interval(a, b) since the former is much faster. However, infinity is a special case.

dpsanders avatar Jun 15 '21 13:06 dpsanders

I use it in the convergence check in the adaptive QR implemented in InfiniteLinearAlgebra.jl

dlfivefifty avatar Jun 15 '21 14:06 dlfivefifty

julia> @interval(Inf)
[1.79769e+308, ∞]

that's not the case anymore on master, it has been changed in #461

lucaferranti avatar Jun 15 '21 14:06 lucaferranti