Perimeter of Ellipse
|
04-12-2023, 07:22 PM
(This post was last modified: 04-16-2023 12:26 PM by floppy.)
Post: #31
|
|||
|
|||
RE: Perimeter of Ellipse
Exact formula for ellipse perimeter calculation? "Yes".
Via division of 2 infinite iterated functions MAGM and AGM (I dont call them elliptic functions; other does). http://www.ams.org/notices/201208/rtx120801094p.pdf On your calc, you just stop the AGM and MAGM routines when the delta of the iteration result is good enough for you (I stop when it is E-8; one time I tried E-9 but it went undefinitively and suppose this is due to the HP41 calculation approximation making a convergence unstable. A 128bit PC would give an outstanding precision). Code for HP41 standard below (no SandMath ROM or other modules required) which can be overtaken for other computer. The documentation should make possible a full understanding of the "iterated" behaviour. Since everything can be improved.. any suggestion to improve the code is welcome. Use case: 10 ENTER 6 XEQ ALPHA ELPER ALPHA 51.05399775 Update1: - code revisited/simplified since the convergence is stable on HP41 and an exit criteria like E-8 not mandatory - file upload redone Code: ; Ellipse perimeter calculation according MAGM and AGM HP71B 4TH/ASM/Multimod, HP41CV/X/Y & Nov64d, PILBOX, HP-IL 821.62A & 64A & 66A, Deb11 64b-PC & PI2 3 4 w/ ILPER, VIDEO80, V41 & EMU71, DM41X |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)