Is it possible to save numbers from a variable into a list fom a code, and then repeating the SAME peice of code saving it to the same list onderneath the preceding? If so, could you post the command.
I am confused as to what you mean also. I will give you the code because its near worthless generally, until fit with rest of prgm.
The star is where I want it to store the value of NX to be stored into L1. I want a whole list of all the values that come out of multiplying N and X.
well, you have to put some bounds onto your x value, or else it will keep filling until infinity! :)
:Input N :For(X,1,100 100 is the upper bound on the X value :Disp NX So you will get all values from N*0 to N*100 :NX → L1(X and the values will all be in L1 once you are finished :End
Another way of doing that is the Seq( command:
Input N seq(NX,X,1,30)->L1 For(X,1,dim(L1 Disp L1(x End
I did that almost exactly, but I got an error. After ":NX→L1(X" It says: ERR: INVALID DIM. What is wrong?
EDIT: I used builderboy's method.
The fact that you did the problem exactly, is the problem. Lists can hold a maximum of 999 different values. Right now, your list either doesn't exist, or the dimensions of it is 0.
I am sorry, but I will not help you any further. I believe that you need to read the documentation of the programming language you want to know. In this case, this site, and the handbook.
If you try to store a variable to the next non-existent space in a list, it will create it and extent the list.
And Graphmaster has a point, you ought to get a little knowledge of the language before attempting something like this
I changed it so it is now
…and I still get the same error at the same place. What is wrong there?
Thank you both for all the help, the program works great now. But can I ask one more question: Is it possible to save a program from being erased when the RAM is cleared but still be able to use it (unlike archiving)
Well, on the end user's calculator, you can use Basic Builder to turn it into an app, which won't be deleted, because it is archived, but will allow it to run. For the programmers calc, I would suggest looking at Groups.