solve conflicted with math.h isnan