|
 |
|
Dev Hardware Forums
> SOFTWARE
> TI 83/84
|
TI 83+/84+ programming?
Discuss TI 83+/84+ programming? in the TI 83/84 forum on Dev Hardware. TI 83+/84+ programming? Programming forum discussing coding and everything related to the well-known TI-83/83+/84/84+ graphing calculators for math and science. Creative ideas, helpful information and questions regarding applications are welcomed but no homework at all!
|
|
 |
|
|
|
|
|

Dev Hardware Forums Sponsor:
|
|
|

October 26th, 2004, 06:10 PM
|
|
n00b DevH'er
|
|
Join Date: Oct 2004
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
TI 83+ programming?
Hi Guys,
I am looking into creating very simple programs on my calculator that will plug a certain number into my equation in order to solve a specific problem. For example, the difference between two points on a coordinate plane.. the formula is
square root of: (X2-X1)2+(Y2-Y1)2
Could someone help me with getting this into my calculator?
I would like to enter the X1,Y1,X2,Y2 and let the calculator do the equation from there.
Thanks a bunch
|

October 26th, 2004, 06:45 PM
|
 |
Enjoy the silence
|
|
Join Date: Jan 2003
Location: North of the 49th Parallel
|
|
|
Since the programming languages for graphical calculators vary from calculator to calculator, your best reference is the manual for the calculator.
|

October 26th, 2004, 10:10 PM
|
 |
Head Wookie
|
|
Join Date: Jul 2003
Location: Michigan
Posts: 420
Time spent in forums: 11 h 40 m 12 sec
Reputation Power: 10
|
|
|
Here is code that should work:
Disp "Enter X1"
input A
Disp "Enter X2"
input B
Disp "Enter Y1"
input C
Disp "Enter Y2"
input D
(B+A)2+(D-C)2 -> E
Disp "The answer is:", E
This should work.
hope it helps
|

October 27th, 2004, 03:09 PM
|
|
n00b DevH'er
|
|
Join Date: Oct 2004
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
almost done putting it in, i dont see a comma though, which button do i press to get a comma? Quote: | Originally Posted by Bigsam411 Here is code that should work:
Disp "Enter X1"
input A
Disp "Enter X2"
input B
Disp "Enter Y1"
input C
Disp "Enter Y2"
input D
(B+A)2+(D-C)2 -> E
Disp "The answer is:", E
This should work.
hope it helps |
|

October 27th, 2004, 03:55 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Toledo, OH
|
|
|
next to the x squared button.
Havn't used a 83 in a long time, 89 wil do you homework for you.
__________________
ASUS WL-500G Premium - Wireless Router + USB hub Great product check it out!!
OCZ Gold XTC PC6400 - check out some bargain DDR2, very solid and the perfect DDR2 for a cheap rig.
|

October 27th, 2004, 05:22 PM
|
 |
usergroup or postcount
|
|
Join Date: Jun 2004
Location: NY/PA
|
|
Yo if i were you I wouldn't use that code above I'd use this:
note: the * is the square root which ends with an ( so thats why theres an extra ) at the end before the arrow
also note the space after answer
Code:
Input "X1=",A
Input "X2=",B
Input "Y1=",C
Input "Y2=",D
*(B-A)2+(D-C)2)->E
Disp "Answer ",E
make sure for the '2's you use a squared.( itested it and it works, If I had my digital camera I would post a ss of my code in the calc so you know you did it right but unfortunatly I don't.
You should read the giant manual, thats how I learned, also find from one of your friends the application call Catalogue Help, it really helps solving those damn syntax errors. oh and if you can't find how to get something(ex. the ! is [Math][>][>][3](I'm not positive on that)) just press [2nd]and either 0 or . which ever one gets you to the Catalogue, there you can simply press a letter and it jumps to that letter or press the empty set to go to all the symbols such as ! , * .
__________________
Zotac 790I-A-E | Intel Core2 Quad 2.66GHz | 8GB(4x2GB) Mushkin DDR3 | MSI GTX 460 @ 810MHz / eVGA GTS 260 | Silverstone ST70F 700W | 150GB VelociRaptor HDD | 1TB WD HDD | Antec P182
Last edited by drumz0rz : October 27th, 2004 at 05:38 PM.
|

October 27th, 2004, 07:25 PM
|
|
n00b DevH'er
|
|
Join Date: Oct 2004
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
shit now i cant find an equals sign... where is it guys?
Quote: | Originally Posted by drumz0rz Yo if i were you I wouldn't use that code above I'd use this:
note: the * is the square root which ends with an ( so thats why theres an extra ) at the end before the arrow
also note the space after answer
Code:
Input "X1=",A
Input "X2=",B
Input "Y1=",C
Input "Y2=",D
*(B-A)2+(D-C)2)->E
Disp "Answer ",E
make sure for the '2's you use a squared.( itested it and it works, If I had my digital camera I would post a ss of my code in the calc so you know you did it right but unfortunatly I don't.
You should read the giant manual, thats how I learned, also find from one of your friends the application call Catalogue Help, it really helps solving those damn syntax errors. oh and if you can't find how to get something(ex. the ! is [Math][>][>][3](I'm not positive on that)) just press [2nd]and either 0 or . which ever one gets you to the Catalogue, there you can simply press a letter and it jumps to that letter or press the empty set to go to all the symbols such as ! , * . |
|

October 27th, 2004, 07:34 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Toledo, OH
|
|
|
2nd math, but you shouldn't need it. You shuld use the ->
|

October 27th, 2004, 07:47 PM
|
 |
Head Wookie
|
|
Join Date: Jul 2003
Location: Michigan
Posts: 420
Time spent in forums: 11 h 40 m 12 sec
Reputation Power: 10
|
|
|
he needs the equals sign to show the display x2= and so on. it is not necessary but adds to the program if anyone else needs it.
|

October 27th, 2004, 07:54 PM
|
|
n00b DevH'er
|
|
Join Date: Oct 2004
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
nice man, it works 
thanks
Quote: | Originally Posted by drumz0rz Yo if i were you I wouldn't use that code above I'd use this:
note: the * is the square root which ends with an ( so thats why theres an extra ) at the end before the arrow
also note the space after answer
Code:
Input "X1=",A
Input "X2=",B
Input "Y1=",C
Input "Y2=",D
*(B-A)2+(D-C)2)->E
Disp "Answer ",E
make sure for the '2's you use a squared.( itested it and it works, If I had my digital camera I would post a ss of my code in the calc so you know you did it right but unfortunatly I don't.
You should read the giant manual, thats how I learned, also find from one of your friends the application call Catalogue Help, it really helps solving those damn syntax errors. oh and if you can't find how to get something(ex. the ! is [Math][>][>][3](I'm not positive on that)) just press [2nd]and either 0 or . which ever one gets you to the Catalogue, there you can simply press a letter and it jumps to that letter or press the empty set to go to all the symbols such as ! , * . |
|

October 29th, 2004, 04:17 PM
|
 |
usergroup or postcount
|
|
Join Date: Jun 2004
Location: NY/PA
|
|
Quote: | Originally Posted by jkabaseball 2nd math, but you shouldn't need it. You shuld use the -> |
hmm.. that gets me thinking, I'm trying to write a program where depending on the input it goes to a different label, it looks something like this
Code:
input "Blah blah Blah",P
If P=Example:Then:goto A:End
If P=Answer:goto B:End
etc...
and no matter what I type it goes to Lbl A but I wonder if I use -> instead of = will it work...
|

October 29th, 2004, 07:46 PM
|
 |
Head Wookie
|
|
Join Date: Jul 2003
Location: Michigan
Posts: 420
Time spent in forums: 11 h 40 m 12 sec
Reputation Power: 10
|
|
heres something for u to try.
Code:
5->a
5->b
lbl 1
output(a,b,"?")
getkey->c
if c=21
quit
if c=24
then
b-1->b
clrhome
end
if c=25
then
a-1->a
clrhome
end
if c=26
then
b+1->b
clrhome
end
if c=34
then
a+1->a
clrhome
end
if a=1
a+1->a
if a=8
a-1->a
if b=1
b+1->b
if b=16
b-1->b
goto1
when u run the program hit the arrow keys. to quit press the 2nd key.
you were saying about different inputs taking you to different labels. you cant really input full text. if I am correct the ti83 only lets you store numbers as characters. but you can say something like:
Code:
lbl 1
input "testloop", a
disp "enter number from 1-10"
if a>10
goto 1
what this does is if u input a number greater than 10 it will repeat the program. anything less than 10 will end the program.
|

October 29th, 2004, 09:12 PM
|
 |
usergroup or postcount
|
|
Join Date: Jun 2004
Location: NY/PA
|
|
you sure? I've gotten other programs in the past to accept text inputs. You seem pretty good with programming, is there a way to prevent someone from pressing a key? The reason is I have a program for fun where its just for example
Code:
Lbl A
Disp "drumz0rz"
Goto A
and it just repeats drumz0rz until the calc. runs out of mem. or you press the on button and get an error, if I could stop the on button from doing its function then the person would be trapped forever!(or until the poped their batteries out)
|

October 29th, 2004, 09:41 PM
|
 |
Head Wookie
|
|
Join Date: Jul 2003
Location: Michigan
Posts: 420
Time spent in forums: 11 h 40 m 12 sec
Reputation Power: 10
|
|
|
what do you mean by text inpputs though. as far as I know you cant store phrases into a variable. example in c++ you can have certain variables that store words or phrases like I can make my name bigsam get stored into the variable a so instead of typing my name over and over again I just type a. I could be wrong about the ti-83 not taking text inputs though. when u did the 3 lines of code that repeated your name it was just an infinite loop, nothing was stored into a variable. if you added any code to get you out of the loop the text would be gone until you went back to the lbl a with a goto.
oh and thanks about the comment on my programming skills. I have been programming on the ti83 since I was in the 8th grade. my friend taught me how. Im a sophmore in college so it has been about 6 yrs. I hope to become a game developer someday.
|

October 29th, 2004, 10:33 PM
|
 |
usergroup or postcount
|
|
Join Date: Jun 2004
Location: NY/PA
|
|
well I'm going to go right now and try this:
and I'll type in a word and see if it displays what i typed in, and btw I'm useing a 83+ if that makes a difference which other then the memory I don't think it does.
|
Developer Shed Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|