Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: InternetCliche on November 15, 2011, 05:18:33 pm
-
The following line of code produces the error WRONG # OF ARGS, highlighting the end bracket of {GDB1+R}
If abs(A+r1-{GDB1+R})<8 and (abs(B+r2-{GDB2+R})<8)
Any ideas? And there is no subroutine named R, I checked for that.
-
get rid of the ( before the second abs(, that might be it
actually just add a ( before the first abs( and after the first <8
-
get rid of the ( before the second abs(, that might be it
Nope. Doesn't compile, and if it did the logic would be wrong. Is this a bug with Axe?
-
nope, try
:If (abs(A+r1-{GDB1+R})< 8 ) and (abs(B+r2-{GDB2+R})< 8 )
or
:If (abs(A+r1-{GDB1+R})<8 and abs(B+r2-{GDB2+R})< 8 )
or
:If abs(A+r1-{GDB1+R})<8 and abs(B+r2-{GDB2+R})< 8
-
nope, try
:If (abs(A+r1-{GDB1+R})< 8 ) and (abs(B+r2-{GDB2+R})< 8 )
or
:If (abs(A+r1-{GDB1+R})<8 and abs(B+r2-{GDB2+R})< 8 )
or
:If abs(A+r1-{GDB1+R})<8 and abs(B+r2-{GDB2+R})< 8
None of them work. Still highlights that end bracket of {GDB1+R}.
-
hmm, usually its a parenthesis issue, at least with me. What do you have set as R?
-
hmm, usually its a parenthesis issue, at least with me. What do you have set as R?
R is
:For(R,0,2
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
-
hmmm, I got nothing, sorry, but I doubt it's a problem with axe.
@too tired to think
-
Hi BTW since I didnt get to say so :D
Like saintrunner said, it usually is a parenthesis problem with me as well :P
-
Yeah It might just not be an option. Have you used it before and had it work?
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
It is in the basic math section. Ctrl-F it.
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
I just checked the 1.0.5 command list, and abs() is valid.
{CONST} or {CONST + Var} produces a 'Wrong # of Args' error D:
Thanks, I just caught that. A workaround for now is to just add the constant after the variable: Var + CONST, which is more optimized anyway.
This could have something to do with the issue.
Try {R+GDB1} and {R+GDB2} instead and see if that works.
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
I just checked the 1.0.5 command list, and abs() is valid.
{CONST} or {CONST + Var} produces a 'Wrong # of Args' error D:
Thanks, I just caught that. A workaround for now is to just add the constant after the variable: Var + CONST, which is more optimized anyway.
This could have something to do with the issue.
Try {R+GDB1} and {R+GDB2} instead and see if that works.
Ah. Thanks-a-plenty. Compiles fine now. Wonder why it doesn't complain about the 37 other instances of {GDBX+somevar}. Not even the other one on the same line.
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
I just checked the 1.0.5 command list, and abs() is valid.
Hm, Firefox is just failing at finding text in pages :/
-
Um... is Abs() even an Axe token? It doesn't seem to do anything for me and it's not listed in the command index, although it compiles.
I just checked the 1.0.5 command list, and abs() is valid.
Hm, Firefox is just failing at finding text in pages :/
Well, the problem was solved, but I am using firefox as well. Never updated past 3.6 though.
-
Yeah I remember having troubles finding stuff with parhenteses in it before. At least it's not as bad as Wordpad when searching through PHP, though.
-
Yeah I remember having troubles finding stuff with parhenteses in it before. At least it's not as bad as Wordpad when searching through PHP, though.
Wordpad? Real men use notepad with the TF2 font.