Fixed bug that made the testers believe x = -x when comparing doubles.
Use isnan. Make formula dependent on delta nad not just the expected value.
return to max(1, abs(expected)) that is the correct formula
add math. to isnan
x==x instead of isnan(x) in c++
Merge pull request #39 from vexorian/doublebug

Fixed bug that made the testers believe x = -x when comparing doubles.