Post Reply 
Continuous fractions in CAS
03-04-2021, 05:06 PM (This post was last modified: 03-04-2021 05:13 PM by Albert Chan.)
Post: #9
RE: Continuous fractions in CAS
(09-24-2020 06:19 PM)Albert Chan Wrote:  From giac source, I learned a nice trick to estimate continued fraction convergent error.
Without knowing the convergent ! Smile (see prog.cc, float2continued_frac())

Let y[i] = [a[i]; a[i+1], a[i+2], ..., a[n] + x]. This is the effect of dropping x of y[0]:

\( \displaystyle ε = |y_0 - [a_0;a_1,a_2,\;...,\;a_n] |
≈ \left| {y_1 - [a_1;a_2,a_3,\;...,\;a_n] \over y_1^2 } \right|
≈\;...\;≈ {x \over y_1^2\;y_2^2 \;...\;y_n^2}\)

Flip RHS denominator to LHS, we have rough estimate of when to stop generating CF coefficients.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Continuous fractions in CAS - pinkman - 09-23-2020, 11:22 AM
RE: Continuous fractions in CAS - pinkman - 09-23-2020, 09:28 PM
RE: Continuous fractions in CAS - pinkman - 09-23-2020, 10:05 PM
RE: Continuous fractions in CAS - Joe Horn - 09-24-2020, 01:12 AM
RE: Continuous fractions in CAS - pinkman - 09-24-2020, 07:14 AM
RE: Continuous fractions in CAS - Han - 03-05-2021, 01:38 AM
RE: Continuous fractions in CAS - Albert Chan - 03-04-2021 05:06 PM



User(s) browsing this thread: 1 Guest(s)