Using abs instead of fabs is a bad idea when you are working with floats in the range [-1, 1].