Re: Rather large number
- Posted by Hawke <mdeland at NWINFO.NET> Nov 24, 1998
- 525 views
> Molasses wrote: > Could anyone please help me in a large calculation? > Let me specify 'large': > (480000^16777216) / 756864000 > That's 480000 to the power of 16777216, divided by 756864000. > What's it for? > It's the number of years it would take to watch a screen 800x600 24bit > color go through every possible combination at 24 frames per second. ummmm, to do what you are saying, you can move *much* faster than 24fps... *MUCH* faster... since you are basically only changing one pixel at any given moment.... you can simply walk around the screen using whatever pixel() command there is in that library... and, you can set, likely, several hundred pixels in a second... depending on the machine, easily thousands per second... in fact.... you're setting 480000*24 pixels/sec which is 11520000... so, instead of multiplying 24*60*60*24*365 to get the divisor, you *should* be multiplying 11520000*60*60*24*365 ie: 60*60*24*365=sec/year = 31536000 you multiplied 24fps*31536000sec/year = 756864000 you should have done 11520000pix/sec*31536000sec/year = 3.6329472e14 for your divisor... this way, you can see your units matching and crossing out... pix/sec * sec/year = pix/year you needed to have pix/year on the right side of the equation because you had pix on the left and were trying to solve for year... once you bring over the divisor, you have pix/pix = year which is what you're after... ie: 480000^16.7M pix / 3.63e14 pix/year = ? year remembering that division is inverse multiplication, it becomes pix/1 * 1/(pix/yr) and pix then cancels... hard to show this way... lets try: pix 1 --- * -------- 1 pix --- yr = pix * yr --- ----- 1 pix = years i think that was better... the answer to your question then becomes solving: 480000^16.7M / 3.63e14 now, thats the same as: 480000^3^255/3.63e14 which is 1.11e17^255/3.63e14 which is 1.11e17^5^51/3.63e14 =1.(11*5)e(17*5)^51/3.63e14 which is 1.65e85^51/3.63e14 and i can tell you right now... this is going to be a *lot* of years... 1.65e85^51 = 1.(65*51)e(85*51) = 1.3315e4335/3.63e14 which, best i can figure :), is.... (if you move the decimal of the divisor, it makes it much easier to calculate...) 1.3315e4335/0.363e15 1.(3315-363)e(4335-15) = *********************** * 1.2952e4320 years * *********************** that's a 4K document holding like 99% zeros :) anyone see any math mistakes? ;) > Just curious. > molasses ummmm that's an awfully big curious, 4300 decimal places of curious... :O --Hawke'