Abstract
Given a real number \({\alpha}\), we aim at computing the best rational approximation with at most \({k}\) digits and with exactly \({k}\) digits at the numerator (denominator). Our approach exploits Farey sequences. Our method turns out to be very fast in the sense that, once the development of \({\alpha}\) in continued fractions is available, the required operations are just a few and their number remains essentially constant for any \({k}\) (in double precision finite arithmetic). Estimations of error bounds are also provided.
Similar content being viewed by others
References
Charrier E., Buzer L.: Approximating a real number by a rational number with a limited denominator: a geometric approach. Discrete Appl. Math. 157, 3473–3484 (2009)
Chrystal, G.: Algebra: An Elementary Text-book. Part Two. Dover Publications, New York, ISBN:0821816497 (1961)
Citterio, M., Pavani, R.: A fast algorithm for the exactly \({k}\)-digit best rational approximation to a real number. In: AIP Conference Proceedings, (ICNAAM-2014), vol. 1648, p. 040003 (2015)
Citterio, M.; Pavani, R.: Unpublished technical report, Quaderni del Dipartimento, QDD 59, 1–22 (2009). http://www1.mate.polimi.it/biblioteca/qddview.php?id=1382&L=i
Hardy G.H., Wright E.M.: An Introduction to the Theory of Numbers. Oxford University Press, Oxford (1979)
Khintchine, A.Ya.: Continued Fractions, P. Noordhoff Ltd., Gröningen (trans. from 3rd Russian ed. by Peter Wynn) (1963)
Pavani R.: A numerical approximation of the rotation number. Appl. Math. Comput. 73(2-3), 191–201 (1995)
Pavani, R., Talamo, R.: Conjugating the Poincarè-map to a Rotation. Annali di Matematica pura ed applicata (IV), CLXVI, 381–394 (1994)
Rockett, A.M., Szüsz, P.: Continued Fractions. World Scientific Publishing, Singapore. ISBN:9810210477 (1992)
Sen S.K., Agarwal R.P., Pavani R.: Best \({k}\)-digit rational bounds for irrational numbers: pre-and super-computer era. Math. Comput. Model. 49, 1465–1482 (2009)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Citterio, M., Pavani, R. A Fast Computation of the Best \({k}\)-Digit Rational Approximation to a Real Number. Mediterr. J. Math. 13, 4321–4331 (2016). https://doi.org/10.1007/s00009-016-0747-z
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00009-016-0747-z