Agree Closed intervals contain their endpoints 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #1, due Friday 8 November
Re: Question (point_ratintvl?) definition (Andrew Cone)
Re: Warning Why ask that? Meaning of point interval (Mark Kittisopikul)
Date: 2002, Nov 07
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

Good point. Closed intervals contain their endpoints. That makes it very simple to detect an interval containing exactly one point. Actually, it would be very simple also for open intervals, since they can never contain exactly one point. That's why I chose to use closed intervals---so we can represent a rational number exactly.

Notice that (point_ratintvl? ri) is a natural companion to (rational->ratintvl r).


Mike O'D.


Messages

to: "Closed intervals contain their endpoints"