Implementing exact real arithmetic in python, C++ and C

  • Authors:
  • Keith Briggs

  • Affiliations:
  • BT, Martlesham Heath, UK

  • Venue:
  • Theoretical Computer Science - Real numbers and computers
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

I discuss the design and performance issues arising in the efficient implementation of the scaled-integer exact real arithmetic model introduced by Boehm and others. This system represents a real number with a automatically controlled level of precision by a rational with implicit denominator. I describe three practical codes, in python, C++ and C. These allow the convenient use of this computational paradigm in commonly used imperative languages.