About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100130: Linear Interpolation!

by Brad Bax
Addition is done through a simple bit-wise operation and a recursive call on itself. Subtraction is done via a Linear Interpolation (cause saying "Linear Interpolation" is cool). Multiplication is attempted first on a result set loaded into memory, Multiplication is then defaulted to an iterative addition solution. Division performs an exaustive search of the multiplication result table (it might be there, no point in wasting precious MPU cycles!!!). If nothing is found, a simple division occurs.

Download0 Comments