Author | Comment |
lemme Probe Posted: 22 Nov 2007 10:06 GMT Total Posts: 12 | Hey, I just started learning how to program and I am very bad at conserving variables. I am wondering if there is anyway to download additional variables to use besides A-Z and theta. I have downloaded a few symbol programs, but the syntax error comes up whenever I try to use the symbols as labels. So, if you could point my in any direction and tell me where I could get some more variables, that'd be great.
Thanks. |
Xphoenix Ultralisk
Posted: 22 Nov 2007 13:33 GMT Total Posts: 210 | Use lists. They have up to 999 elements each.
--- ~Xphoenix |
lemme Probe Posted: 22 Nov 2007 15:35 GMT Total Posts: 12 | How do I use lists? Do I just do something like "LBL L(sub 1)"? |
Zachary940 Wraith
Posted: 22 Nov 2007 16:24 GMT Total Posts: 714 | 8->L1(1
To answer your question.
--- It is much easier to suggest solutions when you know nothing about the problem. |
lemme Probe Posted: 22 Nov 2007 16:31 GMT Total Posts: 12 | Ok, thanks, I got it now. Thanks for all the help! |
lemme Probe Posted: 22 Nov 2007 16:40 GMT Total Posts: 12 | I've encountered a problem. I do the initial storing, and then I go down to and it the line was like this: "If B<0:0->B" and I replaced the B with L1 and now I get a data type error. Help please! |
Zachary940 Wraith
Posted: 22 Nov 2007 17:47 GMT Total Posts: 714 | you need to tel it where to put it in the list
L1(1 for the first spot L1(999 for the last.
--- It is much easier to suggest solutions when you know nothing about the problem. |
lemme Probe Posted: 22 Nov 2007 18:01 GMT Total Posts: 12 | Ok, I still am not totally understanding the concept of lists.
I changed it to "L1(1<0:0->L1(2", but now it says INVALID DIM error. If someone could walk me through on replacing a variable with a list, that'd be great. |
tifreak8x Administrator
Posted: 22 Nov 2007 19:14 GMT Total Posts: 419 | lemme, click here
Check out that link. And then read some of the other tutorials there. Hopefully, this helps you help yourself. If you have any other questions after reading through them, feel free to ask.
--- Bringing you Pokemon, for your calculator. |
TheStorm Marine
Posted: 22 Nov 2007 19:23 GMT Total Posts: 15 | Your issue it that The list isn't long enough so at the start of you program you need to Do a #->dim(L1 where #=how long you need your list to be. You can also try to use the extra variables found from the finance app if you need a few more. Just a warning using lists will be half the speed so it is best to avoid using them where you need speed.
--- "If you've done something right noone will know you've done anything at all." |
lemme Probe Posted: 23 Nov 2007 06:05 GMT Total Posts: 12 | Ok, I got it now. It works and everything! Thanks! |
zarg Dragoon
Posted: 23 Feb 2008 05:05 GMT Total Posts: 67 | would this work: :1->X :LBL A :X->L1(X :X+1->X :GTO A
Would that store spot L1 with 1 and L2 with 2 and so on?
--- In most countries selling harmful things like drugs is punishable. Then howcome people can sell Microsoft software and go unpunished? (By hasku@rost.abo.fi, Hasse Skrifvars http://www.linuxweb.com/lw_quotes.html) |
haveacalc Guardian
Posted: 23 Feb 2008 09:22 GMT Total Posts: 1111 | L1 is the name of the list. L1(1) would be 1, L1(2) would be two...
--- -quoted directly from most movies that don't exist (and some that do). |
Vectris Ultralisk
Posted: 23 Feb 2008 11:04 GMT Total Posts: 375 | lemme to answer your first questions you can't really use variables as labels. When you use A-Z your using the letter for the goto and label, not the variable
you can however use Theta along with 0-9 and you can have two digit labels
examples :Goto A4 :Lbl 6(theta) :Lbl 0F
the reason you got errors when you used those symbols as Lbls is just b/c their not allowed, just stick to two-digit-alphanumeric characters and you'll be fine, also you can't use lowercase letters either |
zarg Dragoon
Posted: 24 Feb 2008 09:47 GMT Total Posts: 67 | ok, what's the differences between lists, arrays, and matrixis. Thanks.
--- In most countries selling harmful things like drugs is punishable. Then howcome people can sell Microsoft software and go unpunished? (By hasku@rost.abo.fi, Hasse Skrifvars http://www.linuxweb.com/lw_quotes.html) |
Xphoenix Ultralisk
Posted: 24 Feb 2008 10:38 GMT Total Posts: 210 | Arrays are matrices (one is mathematical, one is used in programming). Lists are arrays where the dimension of one side is 1.
Here is an array:
1 2 3 4 5 6 7 8 9
Here is a matrix:
1 2 3 4 5 6 7 8 9
Here is a list:
1 2 3 4 5 6 7 8 9
--- ~Xphoenix |
darksideprogramming Guardian
Posted: 25 Feb 2008 05:54 GMT Total Posts: 1005 | :1->X :LBL A :X->L1(X :X+1->X :GTO A
While this would work, it's much easier to use:
seq(X,X,1,[end]->L1 |