Archive for September, 2007

Sixty-five thousand five hundred thirty-five

Posted on September 30th, 2007 by Bob Hall in Tangents

65535

Numbers are one of the things that make us as humans unique. I have read of no other species that utilizes advanced math. I was born in 1967 and there was an emphasis in my early education on “new math” they were teaching us to count, multiply, add, subtract, and divide in base two (binary), eight (octal), base six, and thirteen (the last two don‘t make any sense; as if the others do?).

We as humans are normally born with eight fingers, two thumbs, and ten toes. Base 10 is where we tend to concentrate. Computers on the other (two fingered hand) work a bit differently. 65535 is a number that you have likely seen and should stand out. 65535 is the highest number which can be represented by an unsigned 16 bit binary number (1111111111111111) or FFFF Hex. 65535 can be expressed as 2^16-1 (two to the power of sixteen, minus one). This is also the maximum number of rows that Excel 2003 allows .

I find it particularly fascinating as it is unique and it is made up in a way that few numbers can be across two base counting systems. 65535 can be represented by the prime factorization of 3 x 5 x 17 x 257. This is special in base 2 as the product of the first four Fermat primes: 65535 = (2 + 1)(4 + 1)(16 + 1)(256 + 1) .

This is where Microsoft got into trouble. The 2007 version of Excel has a significant problem in their floating point math representation of 65535. Floating point is the commonest way to represent decimal values in computers (there are other more computationally expensive techniques that are used in financial calculations). Floating point uses a series of binary fractions to approximate a decimal value. Floating point is particularly efficient as the radix point (decimal) is allowed to float (hence floating point) so that the most number of significant digits can be utilized and a very large range of numbers accommodated.

The logic here is actually pretty sound. If you are working with very large numbers, five or six decimal places are absolutely insignificant. Alternatively if you are measuring the space between atoms, you want every one of those 24 bits representing the mantissa (the fractional part to the right of the decimal). Floating point math has a really hard time with .1 in that it can not represent it. Given this limitation and the 65535 “magic number” lets have some fun.

850 * 77.1 is a reasonably decent calculation that you may need performed. The correct answer is our favorite 65,535. Excel 2007 proudly and incorrectly displays 100,000 as the answer. Someone screwed the floating point “optimizations.”

If you have made it this far, you have to be wondering why on earth I wrote this blog. I went to a University that only offered “science” and no “art” degrees. The professors were sacred about this kind of stuff and beat it into us like a passionate ministers of their trade. What is really scarry if that we got into arguments over this kind of stuff.

Fall Chase Season?

Posted on September 13th, 2007 by Bob Hall in Tangents

My apologies for a lack of updates. I don’t do a lot posting unless they are things I’m passionate about. While things like: dog fighting, homicidal diaper wearing astronauts, naughty celebutants, war policy, Oklahoma liquor laws, and lewd Senators may tick me off, they just aren’t that important to me.

Every Spring my life has a singular focus: “The pursuit of atmospheric fury.” Some of my friends get ticked off as I basically disappear. I spend hours looking at models, reading forecast discussion, planning the next chase, and then driving thousands of miles. So far I’m at over 8,000 miles this year. By July 15th I’ve called it quits for the Summer. I’m literally sick of chasing and all the work it takes. I don’t look at the models or even forecasts.

Friday September 7th – Saturday 8th Tulsa experienced a major rain event with 7.35” of rain at Tulsa International Airport. My unscientific trash can had 12” and my basement had over 24 inches. I slept through all of this as my power was out. Only Sunday evening did I realize the scope of the mess. As I planned the task of cleanup I took a look at the models and forecast for the first time in about two months. If you are going to drying half of your personal effects in the back yard it is nice to know the forecast.

I usually try to spend the third weekend in September at a music festival in Kansas. Being in a tent is really close to the weather. It is usually too hot, too cold, or torrential rain. They should have five glorious weather days for the first time I can remember. I repurposed the vacation to the miserable clean-up effort. My friends called from the campfire Tuesday night and passed the phone around. It was sad to know that most of your best friends are having a great time and you can’t join them. The clean up is going well enough and unlike most IT jobs the progress is measurable and real.

Back to those computer models. The ensemble (which blends the various models) is usually the most skillful at the longer term “guess-casting” shows a return to southwesterly flow. This in turn sets up the mid and upper atmosphere for the Fall chase season in September and October.

Mother Nature I’m putting you on notice, you drew first blood. I expect restitution in the for of some photographic tornadoes.

And yeah that Britney Spears “Gimme More” performance at the MTV Video Music Awards is one of saddest pieces of dung ever. It is amazing how YouTube has managed take down thousands of uploads. They are being sued by Viacom who owns MTV for billions in copyright infringement. If you use bit torrent, here is the torrent link.