Computing machine-efficient polynomial approximations

  • Authors:
  • Nicolas Brisebarre;Jean-Michel Muller;Arnaud Tisserand

  • Affiliations:
  • Université J. Monnet, St-Étienne and LIP-E.N.S. Lyon, Lyon Cedex, France;CNRS, LIP-ENS Lyon, Lyon Cedex, France;INRIA, LIP-ENS Lyon, Lyon Cedex, France

  • Venue:
  • ACM Transactions on Mathematical Software (TOMS)
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Polynomial approximations are almost always used when implementing functions on a computing system. In most cases, the polynomial that best approximates (for a given distance and in a given interval) a function has coefficients that are not exactly representable with a finite number of bits. And yet, the polynomial approximations that are actually implemented do have coefficients that are represented with a finite---and sometimes small---number of bits. This is due to the finiteness of the floating-point representations (for software implementations), and to the need to have small, hence fast and/or inexpensive, multipliers (for hardware implementations). We then have to consider polynomial approximations for which the degree-i coefficient has at most mi fractional bits; in other words, it is a rational number with denominator 2mi. We provide a general and efficient method for finding the best polynomial approximation under this constraint. Moreover, our method also applies if some other constraints (such as requiring some coefficients to be equal to some predefined constants or minimizing relative error instead of absolute error) are required.