Hi Folks,
I have a simple program on my HP48G to take three numbers from the stack, put them into 3 compiled local variables, and then evaluate three algabraic objects (which are stored in 3 separate global variables). The problem is, the local variables don't seem to persist beyond the first evaluation. After that I get an undefined local name error. Here is the syntax of my program:
<< -> <-X <-Y <-Z 'M'->NUM 'A1'->NUM 'A2'->NUM >>
Where X, y, and Z are my compiled local variables, which are called for in all three global variables (M, A1, and A2). It doesn't matter what order I put the globals in...just the first one gets evaluated, then the name error. Can I not use compiled local variables like this, or do I just have a syntax error?
One more quick question if I may...how can I purge global variables programmatically?
Any help much appreciated.
Best regards, Hal