BTC ETH SOL XRP DOGE S&P 500 NASDAQ DOW EUR/USD USD/JPY GOLD
BTC ETH SOL XRP DOGE S&P 500 NASDAQ DOW EUR/USD USD/JPY GOLD

New Calculator Handles Disjoint Interval Sets

Ryan Tanaka
Ryan Tanaka
Consumer Tech & Mobile
1 min read 1 sources
calculator

The creator of a new calculator, who has been studying interval arithmetic for weeks, has built a tool that accurately handles division by intervals containing zero. Computing 1 / [-1, 2] yields [-∞, -1] U [0.5, +∞], a union of two disjoint intervals.

The calculator, posted on Show HN and available open-source, was built with TypeScript. The author notes that standard interval arithmetic poorly handles division by intervals containing zero, a problem their calculator addresses.

The calculator’s implementation ensures accuracy using IEEE 754 double precision floats with outward rounding. This development could significantly impact fields requiring precise computations.

Share

Stay in the loop

Get the latest tech news delivered.

Also available via RSS feed

Related Articles