POV-Ray : Newsgroups : povray.off-topic : Heavy metal : Heavy metal Server Time
29 Jul 2024 14:19:08 EDT (-0400)
  Heavy metal  
From: Invisible
Date: 23 Aug 2011 09:42:59
Message: <4e53ae63$1@news.povray.org>
http://en.wikipedia.org/wiki/Multiply-with-carry

"The period of a lag-r MWC generator is the order of b in the 
multiplicative group of numbers modulo ab^r − 1."

So, if A = 4,294,967,118 and B = 2^32 and R = 4 then... what's the 
period of the generator??

AB^4 - 1 is 1461501576760641606276638336235602896801190903807.

That's a big number. Now, what is the order of 2^32 module this huge number?



http://en.wikipedia.org/wiki/Cyclic_group

"[In a cyclic group of order n] The order of the residue class of m is n 
/ gcd(n,m)."

So... that means I need to replace N with the huge number above, and M 
with 2^32?

If I do that, the answer is... N? Is that right?



So... the period of the generator really is 1.46 * 10^48?

My head hurts...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.