Differentiate a closed interval from an open interval?