(12C Platinum) Length of An Ellipse
|
07-23-2019, 05:06 PM
(This post was last modified: 07-23-2019 05:35 PM by John Keith.)
Post: #6
|
|||
|
|||
RE: (12C Platinum) Length of An Ellipse
I have tried several of these methods and I believe that Ramanujan's approximation is the clear winner. It gives 6 - 9 digits of accuracy for reasonable ellipses and is small and fast. For exact solutions, Albert's AGM2 program is fastest by far, almost 200* as fast as numerical integration on the HP 50! The Gauss-Kummer infinite series (series 2 from the PDF in post #2) looks good but the terms are very slow to compute and the program is large and complicated.
At the risk of trolling this thread I am posting HP-48 versions of the programs for those who may be interested. Ramanujan: Code:
For the HP 50, ROT ROT can be replaced by UNROT. AGM2: Code:
This is just a straightforward translation of Albert's Lua code which could be made smaller and faster by moving local variables to the stack at the cost of readability (and effort!). |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C Platinum) Length of An Ellipse - Gamo - 07-07-2019, 05:44 AM
RE: (12C Platinum) Length of An Ellipse - Leviset - 07-07-2019, 10:35 AM
RE: (12C Platinum) Length of An Ellipse - Albert Chan - 07-07-2019, 04:06 PM
RE: (12C Platinum) Length of An Ellipse - Albert Chan - 07-08-2019, 02:53 PM
RE: (12C Platinum) Length of An Ellipse - Gamo - 07-08-2019, 04:51 AM
RE: (12C Platinum) Length of An Ellipse - John Keith - 07-23-2019 05:06 PM
RE: (12C Platinum) Length of An Ellipse - Albert Chan - 01-16-2020, 10:18 PM
|
User(s) browsing this thread: 1 Guest(s)