Computing PI

More
2 hours 41 minutes ago #105 by cponsard
Computing PI was created by cponsard
hello, just got my micro-8 a fews days ago

to train I started with some easy stuff, a hangman (text version fine I will post in another topic when I have some graphics)
and a pi bench, posted here, based on spigot algorthm which is currently used by electron greg to benchmark various 8 bits basics
oldbytes.space/@electron_greg/116409619073557779
I am actually discovering that algorithm which is interesting (idea of variable base change, pi is initially "222222222...")
www.pi314.net/eng/goutte.php

20 decimals computed in 0.345s 
of course no comparison possible with interpreted basic given compilation here
as arrays are fixed I could not parametrise the code
(note maybe preprocessor could help without needing to alter compiler ?)

attached zip with code and screenshots

have fun
christophe
 
The following user(s) said Thank You: Franck

Please Log in or Create an account to join the conversation.

Time to create page: 0.162 seconds
Powered by Kunena Forum