Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.misc > #62
| From | "Tom Lake" <tlake@twcny.rr.com> |
|---|---|
| Newsgroups | comp.lang.basic.misc |
| Subject | Re: HotPaws for iPod touch 3rd. gen. |
| Date | 2011-05-19 22:36 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ir4k38$hri$1@speranza.aioe.org> (permalink) |
| References | <044b0c72-3480-4f0e-9666-719859168b42@k27g2000pri.googlegroups.com> |
"PodMan" wrote in message news:044b0c72-3480-4f0e-9666-719859168b42@k27g2000pri.googlegroups.com... HELP This note is about HotPaws BASIC programming for iPod touch. Thanks to motivation from Tom Lake my understanding has improved exponentially. Never the less I am stuck on the function written as the statement:- 20 plot1(0,"sin(x)","x","0",0,pi,100), within the brackets there are 7 values, and all must be present. The first zero can be incremented to 4, this sets the graphic background. The last value sets the number of points that will be plotted. The middle "0" has no purpose. The pi can be made into multiples which repeat the graph as in 2*pi, or 3*pi. The fifth value or 0 can be changed but I have not found it's purpose? Then there are two "x"s, the second x may be a y or y=x? But then may be not? Anyone know how to work the function? My second challenge is to find a way to PAUSE a program in basic? Some may call it a DELAY. If such a command is missing in HotPaws for iPod then maybe a statement can be written to create a calculation that takes time to complete, a sort of pseudo pause? The value after "x" is for another variable, usually "y" as in the following program 10 fxy$ = "100*sin(x^2+y^2)" 20 n = 32 30 fn plot1(n, fxy$, "x", "y", -3,3, n) This gives a 3D plot. As for a delay, HotPaw has no delay command built in but try this: sound 20000,n,0 where n is the number of seconds you want to delay. SOUND will make a 0 volume sound for that long (you won't hear it) Tom Lake
Back to comp.lang.basic.misc | Previous | Next — Previous in thread | Find similar
HotPaws for iPod touch 3rd. gen. PodMan <ipodeer@gmail.com> - 2011-05-19 16:22 -0700 Re: HotPaws for iPod touch 3rd. gen. "Tom Lake" <tlake@twcny.rr.com> - 2011-05-19 22:36 -0400
csiph-web