Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interacting with ArbFloat #167

Open
lbenet opened this issue Aug 17, 2016 · 0 comments
Open

Interacting with ArbFloat #167

lbenet opened this issue Aug 17, 2016 · 0 comments

Comments

@lbenet
Copy link
Member

lbenet commented Aug 17, 2016

ArbFloats.jl is converging fast, so I've checked how is it the interacting with ValidatedNumerics. Here is a simple test:

julia> using ValidatedNumerics, ArbFloats

julia> displaymode(format=:full)

julia> a = Interval(ArbFloat(0.5)) # This may through lots of warnings
...
[0.5, 0.5]

julia> typeof(a)
ValidatedNumerics.Interval{ArbFloats.ArbFloat{116}}

julia> b = sqrt(a) # the result indicates a seemingly thin interval...
Interval(0.707106781186547524400844362104849, 0.707106781186547524400844362104849)

julia> isthin(b) #... but it is not
false

julia> diam(b)
[+/- 2.41e-35]

julia> sqrt(ArbFloat(0.5))
0.707106781186547524400844362104849

julia> showall(sqrt(ArbFloat(0.5)))
0.70710678118654752440084436210484903 ± 1.203706215e-35

So things seem to work, but the interface is a bit uncomfortable. Also, the output of the interval seems to have all digits, but this is not quite true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant