Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-cjp7w Total loading time: 0 Render date: 2024-06-16T19:50:41.110Z Has data issue: false hasContentIssue false

9 - Rational arithmetic

Published online by Cambridge University Press:  05 March 2013

Peter Kornerup
Affiliation:
University of Southern Denmark
David W. Matula
Affiliation:
Southern Methodist University, Dallas
Get access

Summary

Introduction

This chapter presents a detailed introduction to various finite precision representations of rational numbers and associated arithmetic. It is the result of more than a decade of collaborative research by the authors, and as such has not so far been given a cohesive presentation, but has only been available in a sequence of conference presentations and journal papers. These representations are well founded in classical mathematics (number theory), and many problems are naturally stated in and computed in the domain of rationals. Such problems can be solved exactly in systems based on unbounded integer representations, and possibly also in residue representations as discussed in the previous chapter. However, in many cases an approximate solution based on a finite representation may be sufficient.

The first class of representations is based on the traditional way of using pairs of integers of bounded size. Two natural bounds are proposed: the first simply applying a common bound on the values of numerator and denominator, the other a bound on the product of these. The latter representation will allow a larger range of representable rational values, but for practical reasons it will be approximated by bounding the total number of digits (bits) employed for representing the numerator and denominator using radix polynomials.

It is essential in all such finite representation systems to have an associated rounding rule which allows the mapping of any value from the underlying infinite mathematical domain into the chosen finite set of representable values.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2010

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×