I noticed the following description here:
The numerical value of an infinite continued fraction is [irrational](https://en.wikipedia.org/wiki/Irrational_number); it is defined from its infinite sequence of integers as the [limit](https://en.wikipedia.org/wiki/Limit_(mathematics)) of a sequence of values for finite continued fractions. Each finite continued fraction of the sequence is obtained by using a finite [prefix](https://en.wikipedia.org/wiki/Prefix_(computer_science)) of the infinite continued fraction's defining sequence of integers. Moreover, every irrational number α {\displaystyle \alpha } ![\alpha ](https://wikimedia.org/api/rest_v1/media/math/render/svg/b79333175c8b3f0840bfb4ec41b8072c83ea88d3) is the value of a *unique* infinite regular continued fraction, whose coefficients can be found using the non-terminating version of the Euclidean algorithm applied to the [incommensurable](https://en.wikipedia.org/wiki/Commensurability_(mathematics)) values α {\displaystyle \alpha } ![\alpha ](https://wikimedia.org/api/rest_v1/media/math/render/svg/b79333175c8b3f0840bfb4ec41b8072c83ea88d3) and 1. This way of expressing real numbers (rational and irrational) is called their *continued fraction representation* .
And I also noticed the following tutorial here: Representing Rational Numbers With Python Fractions.
So I want to know if it’s possible to find the unique infinite regular continued fraction for any given irrational number with python.
Regards,
HZ