| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 |
|
||||
|
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
__________________
3DMARK01 |
|
|||
|
almost done putting it in, i dont see a comma though, which button do i press to get a comma?
Quote:
|
|
|||
|
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. |
|
||||
|
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 ! , * . Last edited by drumz0rz : October 27th, 2004 at 05:38 PM. |
|
|||
|
shit now i cant find an equals sign... where is it guys?
![]() Quote:
|
|
|||
|
2nd math, but you shouldn't need it. You shuld use the ->
|
|
|||
|
nice man, it works
![]() thanks Quote:
|
|
||||
|
Quote:
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... |
|
||||
|
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. |