isnan isn't in the std namespace per C++ standard, will figure out linux mint later