CodeWalrus

CodeWalrus Website => Game, Software and Music Downloads => Programs and Utilities => Topic started by: JWinslow23 on March 25, 2016, 12:01:36 AM

Title: [TI-83+/84+]How I wish I could calculate pi...[TI-84+CSE][TI-84+CE]
Post by: JWinslow23 on March 25, 2016, 12:01:36 AM
...on my TI-83+ series of calculators. (https://www.cemetech.net/forum/images/smiles/calc.gif)

Not to worry, though, Jeremy Gibbons and I have a solution for you!

(http://i.imgur.com/XlG1wuN.gif)

Based on the findings in this mathematical paper (http://www.cs.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf), here is a TI-BASIC program that calculates one by one the digits of pi, with features such as:

Download attached. Also, see if you can find the Easter egg, for twice as much fun!

EDIT: I modified the program because the display didn't quite work on the color calculators. Download the new version if you haven't already.
Title: Re: How I wish I could calculate pi...
Post by: Dream of Omnimaga on March 25, 2016, 12:02:50 AM
I notice in the screenshot that it stops at 18. I assume that you pressed a key to quit? Or does it just stop randomly? That would be weird :P Anyway, that is pretty cool.
Title: Re: How I wish I could calculate pi...
Post by: JWinslow23 on March 25, 2016, 12:05:02 AM
I did press a key to quit. You could calculate as long as the memory allows for. On monochrome calcs, I believe this is near 500, and on the CE, I was able to calculate 900 before my battery ran out :P
Title: Re: How I wish I could calculate pi...
Post by: Dream of Omnimaga on March 25, 2016, 12:08:50 AM
Don't you mean we can calculate as long as the batteries survive? :P One interesting trick would be to see how fast it is on the 84+CSE, while still keeping an eye on the battery indicator and charge the calculator every once in a while. I don't know if the calculator can charge while it's busy, though (if that's the case you could always add a Pause option, though). Another issue is that the 84+CSE and especially the 84+CE seem to run much slower when connected to USB.
Title: Re: How I wish I could calculate pi...
Post by: JWinslow23 on March 25, 2016, 12:19:29 AM
Quote from: DJ Omnimaga on March 25, 2016, 12:08:50 AM
Don't you mean we can calculate as long as the batteries survive? :P One interesting trick would be to see how fast it is on the 84+CSE, while still keeping an eye on the battery indicator and charge the calculator every once in a while. I don't know if the calculator can charge while it's busy, though (if that's the case you could always add a Pause option, though). Another issue is that the 84+CSE and especially the 84+CE seem to run much slower when connected to USB.
Well, also as long as memory allows. But in the case of the CE, the batteries run out long before that limit is reached.

Also, has anyone discovered the Easter egg? Anyone who's seen me in IRC knows what I'm talking about ;)
Title: Re: How I wish I could calculate pi...
Post by: Dream of Omnimaga on March 25, 2016, 02:17:20 AM
I didn't since I didn't have time to try the program, but I'll load it on TilEm now.


EDIT: I can't find any easter egg :D (even in the source)
Title: Re: How I wish I could calculate pi...
Post by: JWinslow23 on March 25, 2016, 03:20:16 AM
Quote from: DJ Omnimaga on March 25, 2016, 02:17:20 AM
EDIT: I can't find any easter egg :D (even in the source)
Oh, don't look in the source, my friend. Look in your heart. Or, more importantly, look at the number of radians of one full turn. Put it in your calculator, try and find that out.
Title: Re: How I wish I could calculate pi...
Post by: JWinslow23 on March 25, 2016, 05:56:10 PM
Bump.

I updated the program to actually have compatibility with color calulators (I was a full 26 off for one number <_< ). Download the new version!
Title: Re: How I wish I could calculate pi...
Post by: Dream of Omnimaga on March 26, 2016, 04:24:00 AM
Glad to see xolor compatibility. :)
Title: Re: How I wish I could calculate pi...
Post by: JWinslow23 on March 26, 2016, 04:29:53 AM
Quote from: DJ Omnimaga on March 26, 2016, 04:24:00 AM
Glad to see xolor compatibility. :)
Well, it had color compatibility in the first place (that's what that flash of the graph screen is, the color check), but I realized I was WAY off on one number, and that screwed up output on color calcs. Now you will be able to see all the digits formatted nicely :)
Title: Re: How I wish I could calculate pi...
Post by: Dream of Omnimaga on April 06, 2016, 03:50:33 AM
Ah right, I forgot about that trick lol. I never needed it personally, since all my color games are exclusive to color calcs (in their current versions, that is), and same for monochrome calcs with monochrome games. Something I wonder if how far this pi calculator would get in TilEm or PindurTI (the fastest emulators IMHO) without speed throttling if they were left running overnight. PindurTI is a major PITA to send programs to, though, because they can only be sent to RAM and if the program has the Archive flag enabled then the emulator errors out.