I think I've found a bug with the TI 84 OS. It only works with the variable Y, and removing ClrDraw OR the Vertical command fixes it. I have no clue what is going on.


Code:
ClrDraw
1->Y
1->X
Disp Y,X
Vertical Y
Vertical X
Disp Y,X



Output:

1
1
0
1
Add a DispGraph after the ClrDraw. The calculator resets the value of Y the first time graph screen is displayed after a ClrDraw.
jonbush wrote:
Add a DispGraph after the ClrDraw. The calculator resets the value of Y the first time graph screen is displayed after a ClrDraw.


...why
I too am curious as well. How would that correctly output the second "Disp Y,X"? It seems Y is cleary "0" the second time it's called upon. Why would DispGraph fix that when added as the second line of the program? (Especially when Y is set afterwards?)
It would fix the problem because the graph is first displayed before the value of Y is set. Currently the Vertical Y command is the first time the graph is displayed, which is after the value of Y is set to 1. For instance, the following results in an output of 0:


Code:
ClrDraw
1->Y
DispGraph
Disp Y


This will result in an output of 1:

Code:
ClrDraw
DispGraph
1->Y
DispGraph
Disp Y


Similarly, you can put any command that displays the graph screen before the value of Y is set to fix the problem:


Code:
ClrDraw
Vertical 1
1->Y
Disp Y
Vertical Y
Disp Y


In general, the dependent variable is reset when initially displaying the graph. In parametric mode, both X and Y are reset.
Redrawing the graph screen modifies the X and Y variables; it's not a TI-OS bug, and the behavior has been present since the TI-81 or TI-82 (too lazy to test).
Just tried this in jsTIfied because I didn't believe you. And you're right. I am so baffled. I thought Vertical Y would put a vertical line at 1. But it seems it does erase Y when the graph screen is loaded for the first time-ish and thus Y is then equal to 0. Fascinating.
CVSoft wrote:
Redrawing the graph screen modifies the X and Y variables; it's not a TI-OS bug, and the behavior has been present since the TI-81 or TI-82 (too lazy to test).


X is not modified in Function mode, but it is in other graphing modes.
  
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