-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi!
First of all, thank you for this package!
I've noticed that multiplication of large intervals may give non-intuitive (though correct) answers. I am not sure though if this is a bug or intended behavior. Here is an example:
using ArbNumerics
setextrabits(24);
setworkingprecision(ArbReal, 64);
a = setinterval(0.1, 0.2)
println(interval(a))
println(interval(a*a))
The output is
(0.099999999895226218682, 0.20000000010477379797)
(0.0049999998672865356152, 0.040000000132713469381)
While the upper bound for
UPD:
Another issue with multiplication --- negative numbers don't square to positive numbers. Here is an example
a=setinterval(-1e-10,1e-10)
a^2 |> interval
returns
(-1.0000000036064910928e-20, 1.0000000036064910928e-20)
Instead of
(0, 1.0000000036064910928e-20)
Metadata
Metadata
Assignees
Labels
No labels