Fixed-slash and floating-slash rational arithmetic
暂无分享,去创建一个
A finite precision rational number system provides for representation of a collection of rational numbers subject to limitations on numerator and denominator magnitude. In fixed-point and floatingpoint radix number systems only rationals of the form i/βj, where β is the base, can be realized. In contrast, a finite precision rational number system will allow representation of practically all simple fractions encountered in applications. In this preliminary report we first propose two types of finite precision rational number systems which we term fixed-slash and floating-slash systems [2]. We then consider the conversion (rounding) problem, that is, the determination of a number satisfying the numerator and denominator constraints approximating a given non representable real value. We show that the rounding problem is solvable by an efficient procedure, which we term mediant conversion, that derives from the theory of continued fractions.
[1] E. T.. An Introduction to the Theory of Numbers , 1946, Nature.
[2] George Marsaglia,et al. In: Applications of Number Theory to Numerical Analysis , 1972 .
[3] David W. Matula. Number Theoretic Foundations of Finite Precision Arithmetic , 1972 .