|  |
11-13-2007, 06:14 PM
|
#1 (permalink)
|
Banned Join Date: Oct 2006 Posts: 81
| CalcProgrammer1 LOOK HERE PLS If you have time.....why/where is the infinite loop(y)??? Code: //Sets the window size
0->Xmin
10->Xmax
0->Xscl
0->Ymin
25->Ymax
0->Yscl
//Formats window
RectGC
CoordOff
GridOff
AxesOff
LabelOff
//Turns on function
Func
FnOn
//Draws background
Line(0,0,0,.5)
Line(0,.5,.5,.5)
Line(.25,.5,.25,.9)
Line(.5,.5,.5,0)
Line(.5,0,1,0)
Line(1,0,1,0)
Line(1,0,2,2)
Line(2,2,2.5,1.5)
Line(2.5,1.5,4,5)
Line(4,5,5,2.5)
Line(5,2.5,5.5,3)
Line(5.5,3,6.5,0)
Line(6.5,0,10,0)
//Draws target and places
//target randomly in window
Lbl A
0->B
randInt(7,9)->C
Line(C,.2,C+.6,.2)
Line(C,.4,C+.4,.4)
Line(C,.5,C+.3,.5)
For(A,1,500)
End
//Parabolic function
//of the missle
Lbl B
B+1->B
Input "R= ",R
(-X^2+RX)->Y
DispGraph
Pause
For(T,0,10,.25)
Y-Z
Pt-On(X,Y)
If Z<0 or Z=0
End
//Clears input
//and stops program
ClrHome
ClrDraw
Stop
Thanks for looking!
Cheers,
Williwaw |
| |
11-13-2007, 06:21 PM
|
#2 (permalink)
|
Monster Techie Join Date: Nov 2006 Location: Illinois, USA Posts: 1,765
| Re: CalcProgrammer1 LOOK HERE PLS Not sure, but For() commands need to be paired with End commands. You have:
For(A,1,500)
with an End right next to it. This will create a delay. Label (Lbl) commands do NOT need an End command, as they are just markers to go to a particular line. Lbl commands are only useful with Goto commands, but I don't see any Goto commands in your program.
Other than that, it's a bunch of code. TI-83 code doesn't run on Linux, TI-83's don't run Linux, and I have NO clue why you put this in the Linux forum. Keep your posts on topic.
__________________ |
| |
11-13-2007, 07:05 PM
|
#3 (permalink)
|
Banned Join Date: Oct 2006 Posts: 81
| Re: CalcProgrammer1 LOOK HERE PLS Quote: |
Other than that, it's a bunch of code. TI-83 code doesn't run on Linux, TI-83's don't run Linux, and I have NO clue why you put this in the Linux forum. Keep your posts on topic.
| Thanx for the help...
I only posted here because I saw ur name and not a calc topic...sry
Last edited by williwaw; 11-13-2007 at 07:09 PM.
|
| |  | | Thread Tools | | | | Display Modes | 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 | | | | |