Saturday, 6 September 2008

IEEERemainder: Simply the Best and Probably the Most Under-used method in java.lang.math

java.lang.Math's Math.IEEEremainder( double, double) rocks and rules! Forget about those boring and simple min, max and trig functions! Every Tom, Dick and Harry knows that. (Well, trig functions are not so simple in that they use Taylor series, but that's not too hardcore for a vaguley mathematical computer programmer). IEEERemainder is so cool that C# implements EXACTAMUNGO the same method in the System namespace of mscorlib. They copied the signatures cleanly right down to the name of the static class. Microsoft really did their homework on this one.

But whose implementation is faster? Haven't a clue what I'm talking about? Take a crash-course on math co-processors by talking to Dr Chuck. Now, THAT's what I'm talking about.

No comments: