Mark Brader:
> 3. Using the IEEE standard representation of floating-point numbers,
> what is the largest value that can be represented in 32 bits?
My usual presentation format won't work for this round, so I'll present
the results as a series of separate tables that will fit on your standard
80-column line. Here are the answers as posted:
Peter Smyth 16,777,215
ArenEss 2^31 - 1
Joshua Kreitzer 4.29496725 * 10^9
Stephen Perry 4.294967295 * 10^9
Erland Sommarskog 1E24
Bruce Bowler 1.7*10^38
Gareth Owen 2^127
** CORRECT ** 2^128 - 2^104
Marc Dashevsky 8,388,608 x 2^127
Dan Tilque 10^128
It looks as though several entrants forgot that the question was about
floating-point representations, although two of them then proceeded
to format their answers in ways that floating-point numbers might be
written. However, they were saved from elimination by one entrant
who apparently thought that the IEEE representation used base 10.
Here are the answers as plain numbers:
Peter Smyth 16,777,215
ArenEss 2,147,483,647
Joshua Kreitzer 4,294,967,250
Stephen Perry 4,294,967,295
Erland Sommarskog 1,000,000,000,000,000,000,000,000
Bruce Bowler 170,000,000,000,000,000,000,000,000,000,000,000,000
Gareth Owen 170,141,183,460,469,231,731,687,303,715,884,105,728
** CORRECT ** 340,282,346,638,528,859,811,704,183,484,516,925,440
Marc Dashevsky 1,427,247,692,705,959,881,058,285,969,449,495,136,382,746,624
Dan Tilque 100,000,000,000,000,000,000,000,000,000,000,000,000,000,-
000,000,000,000,000,000,000,000,000,000,000,000,000,000,-
000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
And here are the ratios between the answers given and the correct answer.
I'm showing them to 12 significant digits.
Peter Smyth /20,282,409,603,700,000,000,000,000,000,000
ArenEss /158,456,315,658,000,000,000,000,000,000
Joshua Kreitzer /79,228,158,640,400,000,000,000,000,000
Stephen Perry /79,228,157,810,300,000,000,000,000,000
Erland Sommarskog /340,282,346,639,000
Bruce Bowler /2.00166086258
Gareth Owen /1.99999988079
Marc Dashevsky *4,194,304.25000
Dan Tilque *293,873,605,222,000,000,000,000,000,000,000,000,000,-
000,000,000,000,000,000,000,000,000,000,000,000,000,-
000,000,000,000
Of course, the IEEE floating-point representation is only accurate to about
7 significant digits -- the *second*-largest representable value in 32 bits
is 2^128 - 2^105 = 340,282,326,356,119,256,160,033,759,537,265,639,424.
(By the way, if I had asked for the 64-bit version of IEEE 754, then the
answer would have been 2^1024 - 2^971, which is 179,769,313,486,231,570,-
814,527,423,731,704,356,798,070,567,525,844,996,598,917,476,803,157,260,-
780,028,538,760,589,558,632,766,878,171,540,458,953,514,382,464,234,321,-
326,889,464,182,768,467,546,703,537,516,986,049,910,576,551,282,076,245,-
490,090,389,328,944,075,868,508,455,133,942,304,583,236,903,222,948,165,-
808,559,332,123,348,274,797,826,204,144,723,168,738,177,180,919,299,881,-
250,404,026,184,124,858,368. This representation is accurate to about
16 significant digits.)
Anyway, Dan Tilque is eliminated. This contest is now open only to
Bruce Bowler, Marc Dashevsky, Joshua Kreitzer, Gareth Owen, Stephen
Perry, Peter Smyth, Erland Sommarskog, and the entrant posting as
"ArenEss".
Round 4 will be open for 4 days from the moment of posting, or until
everyone has posted an entry.
4. In order for a storm to be classified as a hurricane it must
have surface winds (sustained for at least 1 minute) of at least
what speed, according to the National Weather Service in the US?
--
Mark Brader, Toronto | "GUALITY IS FIRST"
m...@vex.net | --slogan of "Dongda electron CO.,LTD"