(35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
|
06-27-2021, 08:53 AM
(This post was last modified: 06-27-2021 09:06 AM by mchris.)
Post: #1
|
|||
|
|||
(35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
Put the two radii in X and Y stack and execute. It uses registers A and B
Code: P001 LBL P |
|||
06-27-2021, 09:07 AM
Post: #2
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
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 |
|||
06-27-2021, 02:46 PM
Post: #3
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
Just for checking, a numerical example please
Pedro |
|||
06-27-2021, 08:15 PM
Post: #4
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
(06-27-2021 02:46 PM)PedroLeiva Wrote: Just for checking, a numerical example please Check this page https://www.mathsisfun.com/geometry/elli...meter.html |
|||
06-27-2021, 09:07 PM
Post: #5
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
That´s great, Thank you
Pedro |
|||
07-03-2021, 08:26 AM
(This post was last modified: 07-03-2021 03:47 PM by J-F Garnier.)
Post: #6
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
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 |
|||
07-03-2021, 01:55 PM
Post: #7
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
HP-11C, HP-15C:
Code:
wp34s: Code:
|
|||
07-31-2021, 01:36 PM
(This post was last modified: 07-31-2021 01:43 PM by dlidstrom.)
Post: #8
|
|||
|
|||
RE: (35S) Perimeter of ellipse (Ramanujan 2nd Approximation)
Here’s a SysRPL implementation using Jazz syntax:
Code:
112.5 bytes # 9C0Eh 2xHP48GX, HP 50g, two Retrotronik ram cards, DM42 /Daniel Lidström |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)