Last fix - Resolving issue #168

Fixes a potential problem with the math library preventing the sum (-infinite + infinite) from resulting NaN. Instead, it forces the result to be -infinite as the former library would.