Is there a good existing library for conservative interval arithmetic in Javascript?
By conservative I mean that given two intervals representing ranges of real numbers (whose endpoints happen to be floating point), their interval sum contains all sums of real numbers from the original intervals, and similarly for the other operations. The only library found by a quick search is https://github.com/Jeff-Tian/JavaScriptIntervalArithmetic, but it doesn't appear to be conservative.
Since we don't have access to rounding modes, it's fine (actually preferable for speed) if the intervals aren't optimal. For example, it would be fine if the square of a number was conservatively approximated by [(1-epsilon)*(x*x),(1+epsilon)*(x*x)]
, even though this is larger than the optimal floating point interval.