An attempt to log my journey through learning elm. Will work through tutorials found on the net, with an attempt to tweak each provided example so that I can get a better grip on the material. The examples will be in reverse chronological order, with the top displaying the most recent challenge.
Tutorials: \
A random walk, continuing on with the use of the Random module…
Estimating pi…
The approximation is based on the idea that: \[\lim_{n \to \infty} \frac{t}{n} = \frac{Area \ of \ Circle \ Quad}{Area \ of \ Circumscribed \ Square \ Quad} = \frac{\frac{\pi r^2}{4}}{r^2} = \frac{\pi}{4}\]
Admittedly took a bit of brute force to get this one done. Constrained the movement of the eyes by adjusting the related R values on the x,y-axis.
Learnt a bit about signals, and some work to get the coordinates to track mouse moves…
Instead of calculating and displaying the fibonacci sequence, I chose to pump out the sequence of perfect numbers up to 1000.
Perfect number, a positive integer that is equal to the sum of its proper divisors. The smallest perfect number is 6, which is the sum of 1, 2, and 3. Other perfect numbers are 28, 496, and 8,128. The discovery of such numbers is lost in prehistory. It is known, however, that the Pythagoreans (founded c. 525 bc) studied perfect numbers for their “mystical” properties.
-Encyclopedia Britannica
If anyone has suggestions on improving the properDivisor implementation please advise.
Really no additional explanation required here, just changed the wording a bit.