The Four Meanings of "Accurate to 3 Places"
|
12-30-2017, 08:10 PM
Post: #5
|
|||
|
|||
RE: The Four Meanings of "Accurate to 3 Places"
This recursion is basically x=1/[1/x] where [] means floor is called the Gauss Map. It drifts rather quickly because the error in continued fraction approximation (p/q) is of order 1/q^2 (actually much better). The accuracy of the continued fraction part quickly exceeds the floating point precision of the calculator. The algorithm's greatest strength (good accuracy) tends to make it tricky.
Try with Sqrt(2) which has the continued fraction (1;2,2,2,2...) where the semicolon separates the first (or integer) part from the fraction. When done with symbolic arithmetic, it works fine. When done in floating point, the computation deteriorates. HP50g program << INV DUP FLOOR DUP UNROT - EVAL>> Sqrt(2) gives 0,1,2,2,2.... Sqrt(2.) gives the same but then after 15 steps or so deteriorates. Exact mode works well for algebraic stuff. Floating point is always tricky. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
The Four Meanings of "Accurate to 3 Places" - acapde - 12-29-2017, 10:06 PM
RE: The Four Meanings of "Accurate to 3 Places" - Joe Horn - 12-30-2017, 12:12 AM
RE: The Four Meanings of "Accurate to 3 Places" - acapde - 12-30-2017, 01:47 AM
RE: The Four Meanings of "Accurate to 3 Places" - Joe Horn - 12-30-2017, 07:46 PM
RE: The Four Meanings of "Accurate to 3 Places" - ttw - 12-30-2017 08:10 PM
RE: The Four Meanings of "Accurate to 3 Places" - Albert Chan - 08-18-2018, 02:45 PM
RE: The Four Meanings of "Accurate to 3 Places" - acapde - 01-01-2018, 12:53 AM
|
User(s) browsing this thread: 1 Guest(s)