Skip to main content
Log in

A Fast Computation of the Best \({k}\)-Digit Rational Approximation to a Real Number

  • Published:
Mediterranean Journal of Mathematics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. 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)

    Article  MathSciNet  MATH  Google Scholar 

  2. Chrystal, G.: Algebra: An Elementary Text-book. Part Two. Dover Publications, New York, ISBN:0821816497 (1961)

  3. 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)

  4. 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

  5. Hardy G.H., Wright E.M.: An Introduction to the Theory of Numbers. Oxford University Press, Oxford (1979)

    MATH  Google Scholar 

  6. Khintchine, A.Ya.: Continued Fractions, P. Noordhoff Ltd., Gröningen (trans. from 3rd Russian ed. by Peter Wynn) (1963)

  7. Pavani R.: A numerical approximation of the rotation number. Appl. Math. Comput. 73(2-3), 191–201 (1995)

    MathSciNet  MATH  Google Scholar 

  8. Pavani, R., Talamo, R.: Conjugating the Poincarè-map to a Rotation. Annali di Matematica pura ed applicata (IV), CLXVI, 381–394 (1994)

  9. Rockett, A.M., Szüsz, P.: Continued Fractions. World Scientific Publishing, Singapore. ISBN:9810210477 (1992)

  10. 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)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Raffaella Pavani.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00009-016-0747-z

Mathematics Subject Classification

Keywords

Navigation