Fixing inexact comparisons to handle different signed arguments.
Fixing (atan -0.0 -1.0) case.