So a few days ago I typed this program from this site for factorizing numbers for my math problems on the ti-86 (its also for the ti-85). Can someone please help me; there are errors in the code. I have included the images they provided me (I know right! Images?)
Listing of the TOSTR program..

Part One of the GETPRIME listing.

Part Two of the GETPRIME listing.

and here is the whole webpage for you who want to read the instructions.
http://courses.wccnet.edu/~palay/math169/gtprime6.htm
Thanks Guys,
SeeGreatness
For one, gotos can only be followed by two characters.

EDIT: I'm wrong
CalcMeister wrote:
For one, GOTOs can only be followed by two characters.

EDIT: This code is error ridden, sadly. I'll post a list of errors in a minute.


first i have no problem with the GOTOs
second yes their is a number of errors it says to enter the number72 first and that makes a error because the StrANS and Str9 are different data types
but I did try to debug it by adding both values (before i realized they were different types) and then doing the rest of the string equation and that worked... for the ti-86 which is what im using
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way
EDIT: I'm wrong
Unless TI-89 Basic is extremely different from standard, which could be true. I was debugging this for 84 Basic.
EDIT: I was wrong.
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way


You did catch this is for the TI-86, not 83+ series, right?
BrandonW wrote:
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way


You did catch this is for the TI-86, not 83+ series, right?
Oh rip me
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way


abs is like that
im not sure about the repeat but i believe it could be correct how it is im not sure
ipart is like that
I believe you cant add strings like that so that might be correct
I believe the conditions are different for the ti-86 because I have had experience with ti-83 programming lately
no the labels and GOTOs are defiantly different for the 86 defiantly
anything letter or num can be a variable
the pause can display text but im sot sure if it can do varibles
CalcMeister wrote:
BrandonW wrote:
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way


You did catch this is for the TI-86, not 83+ series, right?
Oh rip me

That is funny; I thought you were talking about the TI-83+
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way
EDIT: I'm wrong


You can concatenate strings with the + operator....

And SeeGreatness, you can display anything you can display with Disp using Pause
_iPhoenix_ wrote:
CalcMeister wrote:
Errors I see so far:
abs( not abs (
Repeat Z=0 not Repeat Z==0
iPart( not iPart (
You can't add strings together with the "+" operand
All conditionals are [something]=[something] not [something]==[something]
Lbls and Gotos can only be followed by two characters exactly
You can only use OS variables, which are A-Z and Theta, plus lists and things.
Pause doesn't work that way
EDIT: I'm wrong


You can concatenate strings with the + operator....

And SeeGreatness, you can display anything you can display with Disp using Pause


thanks
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement