Remove excess white space.
Port Penner's easing equations from George McGinley Smith's JavaScript port to Ruby extension C.