I am using chatGPT to develop an app that calculates a line's inclination. Here I ask the ai to guard against NaN and infinity values and it fails! Instead of checking for infinity, it checks for finity!!! the opposite of what I want!