My latest coding project involves neural networks, and I was trying to visualize my output using an algorithm that uses random numbers. In the process, I wondered what the graph output would be of a random number seed vs the first random number generated. Here a basic code which stores the x value to the seed, and then plots a point (x,10rand). The graph appears to oscillate similar to a sawtooth wave, but isn’t really a function because it appears there is more than one y value for every x value. I am still trying to figure out why, but they seem to be in phase. Anybody have any light to shed on this?
:ClrDraw
:For(A,0,1000
:A->rand
:Pt-On(A,10rand
:End
This is meant to be run with a window range of Xmin=0, Xmax=1000, Xscl=1, Ymin=-10, Yscl=1, Ymax=10.
|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |