![]() 2 4 8 16 32 64 128) go to 1 very quickly because no intermediate values will be odd.īut most even numbers become odd numbers when divided by two and then the intermediate values go UP when multiplied by 3 and then add 1. The vibration effect (where a dry finger brushes an empty soda can on the machine causes a vibration, but a damp or stationary finger does little) is probably. In the first two installments, we saw how to build it and witnessed some of the more obvious strange effects. I'm not sure why people keep saying even numbers "don't increase" ? The Enigma Machine generates high voltage pulses that are safe to play with. The Prop is not going to beat the i7 in your laptop, but it's not a bad speed improvement over the original Prop code. That plus six PASM cogs engaged in the search makes a 12x increase in speed. Right off the bat I realized that even numbers will never increase imax, so you can double the speed of the algorithm by considering only odd starting numbers. I liked Ariba's code so I thought I'd use it to make my own 6-cog version (with the seventh cog doing PST and the eighth cog being the spin boot cog). document.getElementById("answer").innerText = maxval + ' ' + maxsteps ĭocument.getElementById("answer").innerText = maxval + ' - ' + maxsteps + ' steps' Here is a web page that runs a javascript function checking 1 to 1 million - faster than 5 seconds on my PC using ChromeįONT-FAMILY: Verdana, Courier, 'MS Sans Serif' įONT-FAMILY: 'Comic Sans MS', Verdana, Courier I've never seen a "let" statement in javascript?!? I plan to adapt it to a LCD display and let it run for a very long time. It uses double precision for the seed, so can go past the 2**32 limit. Robert Duvall was subsequently nominated for an Oscar, which makes sense now as it would have then Michael O’Keefe was also nominated, but I retract nothing. Rdlong currentLo, AdSeedLo 'get current valueĪdd currentLo, workLo wc 'multiply by twoĮrror wrlong one, AdErr 'indicate failure Several weeks after this was written, The Great Santini secured a national release and proved to be a sleeper. Rdlong workLo, AdCommand wz 'wait for a command Rdlong AdIter, AdPar 'number of iterations Mov AdPar,Par 'get the address of input parameters MyParm := := := := 1 maxit) 'if his iterations is greater Pst.str(String("hello, world ")) 'runs in cog 1 Pst.Start (115_200) 'start up ser terminal Long MyParm 'passing addresses, etc to pasm cog _xinfreq = 5_000_000 '* crystal frequency = 80 MHz _clkmode = xtal1 + pll16x 'Standard clock mode This found the 966 (965 depending on how you count them) iteration seed at 537 099 606 in about 17 hours. The long pole is the Spin cog that issues numbers and checks the results for a new maximum iterations. Here is an example of multiple cogs running identical PASM programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |