How To Overcome Limits In Assigning Variables?
#1
Posted 15 April 2008 - 03:06 AM
I have now programmed quite a few short programs on my FX-9860G and I must say that the 9860 is cool!
I am right now doing a rather complex program and I ran into the limitation of assigning variables as all alphabets A-Z are now used. I know I can use Lists (e.g. List 1 ) as variables but this kinda make the programs hard to read/debug IMHO.
I am inclined to split the programs up into chunks and pieces of codes by using the PROG keyword so that I can recall programs by using the command PROG "CALCULATE" for instance. Ideally, I would like to reuse variables in these different chunk of codes as follows:
For example, is it possible to, in program "input", do a "Input power"?->A
and in program "calculate", do a P/415->A ? The actual formula is quite long, so I am doing a short form here.
Will I be able to link the programs together somehow?
Appreciate if anyone can give some insights how to write long/complex programs.
Thanks
#2
Posted 19 June 2008 - 03:30 PM
I'm using an older calculator, but I think that what applies for mine will apply for yours too.Hi
I have now programmed quite a few short programs on my FX-9860G and I must say that the 9860 is cool!
You could use theta, besides only lists and matrices could be used.I am right now doing a rather complex program and I ran into the limitation of assigning variables as all alphabets A-Z are now used. I know I can use Lists (e.g. List 1
) as variables but this kinda make the programs hard to read/debug IMHO.
You could merge parts of two variables in one. Like 5 and 3 --> 503, but than I would rather use lists.
I would rather use goto and lbl, although I prefer while, for etc... even more.I am inclined to split the programs up into chunks and pieces of codes by using the PROG keyword so that I can recall programs by using the command PROG "CALCULATE" for instance.
By using goto, lbl and all the loops.Will I be able to link the programs together somehow?
#3
Posted 09 September 2008 - 01:15 PM
#4
Posted 11 September 2008 - 05:34 AM
Unless there is a value you really need the calculator to "remember" - you should use that one only in the program that works with it, not in any other program.
#5
Posted 16 September 2008 - 03:13 PM
#6
Posted 14 October 2008 - 12:49 PM
Advanced Variables. Those REALLY helped me.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users