1
TI-BASIC / 83+ to nspire nx rewrite fail
« on: March 26, 2012, 12:07:44 am »
Hey,
So I'm in the process of rewriting some of my more useful programs from my TI-83 plus onto my TI-nspire cx cas.
I've written myself a program that will ask for 4 variables, and depending on which variable is set as the one to solve for, it will perform a certain equation. By making my variables equal each other (ex: p=p) then that tells my code to solve for that variable.
Heres the code thats on my 83, it works just fine.
I'm basically writing the same exact code, except without the 'input' command, since it isn't in the catalog function on the cas, but that is what the 'define' command is for. Here is the code I have on my cas, it gives me syntax errors when I try to 'check it', and when I run it, it says I have too many arguments. I also tried writing the code with instead of 'func', using 'prgm', which didn't change anything. I attempted to have the code recognize the variable '?' which would symbolize which variable to solve for, but it would not recognize it either.
I know that my knowledge of coding is quite diminutive, which is why I'm here, to learn. So feel free to poke and make fun of my codes and how sloppy it is and whatnot. I'm sure there are numerous ways to shorten my code, but I only know the very basics at the moment. Any bits of knowledge you could offer me would be greatly received, I am here to learn!
Thank you for your time.
So I'm in the process of rewriting some of my more useful programs from my TI-83 plus onto my TI-nspire cx cas.
I've written myself a program that will ask for 4 variables, and depending on which variable is set as the one to solve for, it will perform a certain equation. By making my variables equal each other (ex: p=p) then that tells my code to solve for that variable.
Heres the code thats on my 83, it works just fine.
Spoiler For Spoiler:
I'm basically writing the same exact code, except without the 'input' command, since it isn't in the catalog function on the cas, but that is what the 'define' command is for. Here is the code I have on my cas, it gives me syntax errors when I try to 'check it', and when I run it, it says I have too many arguments. I also tried writing the code with instead of 'func', using 'prgm', which didn't change anything. I attempted to have the code recognize the variable '?' which would symbolize which variable to solve for, but it would not recognize it either.
Spoiler For Spoiler:
I know that my knowledge of coding is quite diminutive, which is why I'm here, to learn. So feel free to poke and make fun of my codes and how sloppy it is and whatnot. I'm sure there are numerous ways to shorten my code, but I only know the very basics at the moment. Any bits of knowledge you could offer me would be greatly received, I am here to learn!
Thank you for your time.