(35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) (/thread-17171.html) |
(35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - mchris - 06-27-2021 08:53 AM Put the two radii in X and Y stack and execute. It uses registers A and B Code: P001 LBL P RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - mchris - 06-27-2021 09:07 AM And if we put the following code to the end we get also the distance of the focal points from the center, on stack Y Code: P029 RCL A RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - PedroLeiva - 06-27-2021 02:46 PM Just for checking, a numerical example please Pedro RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - mchris - 06-27-2021 08:15 PM (06-27-2021 02:46 PM)PedroLeiva Wrote: Just for checking, a numerical example please Check this page https://www.mathsisfun.com/geometry/ellipse-perimeter.html RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - PedroLeiva - 06-27-2021 09:07 PM That´s great, Thank you Pedro RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - J-F Garnier - 07-03-2021 08:26 AM Here is an alternate version, using no registers, that runs on any scientific RPN machine: Code: 01*LBL "P" Example with y=4, x=6: 41C: 31.73087918 32S: 31.7308791784 true: 31.730879178581... J-F RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - Gerson W. Barbosa - 07-03-2021 01:55 PM HP-11C, HP-15C: Code:
wp34s: Code:
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation) - dlidstrom - 07-31-2021 01:36 PM Here’s a SysRPL implementation using Jazz syntax: Code:
112.5 bytes # 9C0Eh |