List Commands Library for 50g

03282018, 08:12 PM
Post: #311




RE: List Commands Library for 50g
(03282018 01:43 PM)DavidM Wrote:(03282018 10:01 AM)ttw Wrote: Multiplying by 20 and subtracting 10 seems a bit better. It saves one RNG call and doesn't push things into 0. Saving a call is useful as for many RNG types, using two RNG calls at a time shortens the autocorrelation from being of the cycle length of the RNG to being the Sqrt(cyclelength). I would bet that there is a valid reason, although exactly what that reason is may be above my pay grade. Zeros do seem to predominate in "realworld" matrices, and I doubt that HP's programmers would make such a simple mistake. This is just an intuitive guess, I have no evidence that this is actually the case. Also, the method suggested by ttw would be preferred for uses other than generating random matrix elements. John 

« Next Oldest  Next Newest »

User(s) browsing this thread: 8 Guest(s)