The algorithme to make function plotting is complete. Handle NaN and Infinity