Trying to run the Ahl benchmark program on my TI-84 Plus but keep getting an overflow error. Can anyone explain where I am going wrong with this? Also attached original program.

Code:

0->A
0->B
0->S
0->R
For(N,1,100)
N->a
For(I,1,10)
A*A->B
A->B
Disp B
(rand(1)+R)->R
End
For(I,1,10)
A*A->B
B->A
(rand(1)+R)->R
End
S+A->A
End
Disp (abs(1010-(S/5)))
Disp (abs(1000-R)))

Couple of things:
Edit: I think you've misunderstood the command sqr(
I'm pretty sure that means square root. So
A*A->B
B->A
Should be √A->A

S+A->A needs to be S+A->S

rand just returns a number between 0 and 1 by default. The (1) you put next to it actually makes the command return a list. I'm not sure how the original language works but if you want a specific number range you should use randInt(. If you actually wanted a list then you need to store it to a list variable (L1-L6).
I'll make these changes -thank you! Very Happy

EDIT: Made changes and program works great now. THANKS!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement