Jump to content
IGNORED

Calculating Pi on a C64


Tpapp54321

Recommended Posts

I just finished reading a book that talked a little about the Chudnovsky brothers and their race to discover digits of pi. It covered a little background history on the discovery of pi and the development of how computers allowed for the discovery of more digits and it got me thinking. How many digits of pi would a computer like the C64 be able to compute?

Link to comment
Share on other sites

Depends how long you keep the C64 plugged in ?

 

You can use arctan expansions on C64 basic. This is what was used back when BASIC was a common programing language.

 

See http://justbasic.conforums.com/index.cgi?board=code&action=display&num=1146782052. Author claims the BASIC program at the bottom was used on 1978 Apple with only one command change.

Link to comment
Share on other sites

If each digit were stored in one nibble(half a byte) as binary coded decimal then the answer would have to be less than 131,071 as there are 64KB which is 65,536 Bytes, which is 131,072 nibbles, of that 1 nibble would be used for the 3 before the decimal place. That leaves 131,071 which then there would have to be some of that used for decimal place, and then also there would already be RAM used to to start with anyway. I could be completely wrong on how the information would be stored in ram as well that was just me guessing I have no clue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...