Computers |
|
| | #1 (permalink) |
| Banned Join Date: Oct 2006
Posts: 81
| 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 Cheers, Williwaw ![]() |
| | |
| | #2 (permalink) |
| Monster Techie Join Date: Nov 2006 Location: Illinois, USA
Posts: 1,328
| 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. |
| | |
| | #3 (permalink) | |
| Banned Join Date: Oct 2006
Posts: 81
| Quote:
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 | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shutdown suddenly and display nothing, pls help!! | rikinel | Hardware Troubleshooting | 6 | 10-06-2007 12:57 AM |
| Troubleshooting my rig, pls help | Riznarf | Building, Buying, or Upgrading High Performance PC Systems | 3 | 10-04-2007 02:37 PM |
| Having problems with World in conflict...pls help needed | krazyq | PC Gaming | 0 | 09-26-2007 06:35 PM |
| hjt log - pls review... trojans I think | rod19952007 | HijackThis Logs (finished) | 1 | 09-20-2007 08:56 AM |