Post Reply 
Gerson's Pi Program
12-28-2020, 11:20 AM
Post: #1
Gerson's Pi Program
Did anyone else have a go at de-obfuscating and running Gerson's short pi-calculating program from the festive greetings thread?

(12-25-2020 11:45 PM)Gerson W. Barbosa Wrote:  [Image: 50760419411_91285aaba2_b.jpg]

I'd be interested to know how it works!

I made a plain copy in BBC Basic, which you can run in your browser here.

And here it is below anti-spoiler scroll filler:
Code:

.
..
.
...
.
..
.
....
.
..
.
...
.
..
.

10 INPUT n
20 c=0
30 d=8*n+4
40 e=d-8
50 m=4*n*n - 1
60 w=2
70 FOR i=1 TO n
80 w=w+w/m
90 c=m/(c+d)
100 m=m-e
110 e=e-8
120 NEXT
130 PRINT w*(2/(c+d-1)+1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Gerson's Pi Program - EdS2 - 12-28-2020 11:20 AM
RE: Gerson's Pi Program - Allen - 12-28-2020, 01:15 PM
RE: Gerson's Pi Program - EdS2 - 12-29-2020, 09:15 AM
RE: Gerson's Pi Program - EdS2 - 03-01-2022, 09:39 AM
RE: Gerson's Pi Program - EdS2 - 03-02-2022, 11:17 AM
RE: Gerson's Pi Program - EdS2 - 03-04-2022, 04:50 PM
RE: Gerson's Pi Program - Valentin Albillo - 03-08-2022, 05:42 PM
RE: Gerson's Pi Program - EdS2 - 03-10-2022, 07:47 AM
RE: Gerson's Pi Program - Valentin Albillo - 03-10-2022, 11:48 AM
RE: Gerson's Pi Program - Ángel Martin - 03-09-2022, 08:12 AM
RE: Gerson's Pi Program - EdS2 - 03-11-2022, 12:42 PM
RE: Gerson's Pi Program - EdS2 - 03-15-2022, 07:44 AM



User(s) browsing this thread: 1 Guest(s)