|
After some discussions with Andrew Cone and some research I have determined some behavior about rational? and exact? that was not so obvious to me at first. So here we go:
My discussions with Andrew involved if 2.5 was a valid rational number for our implementation of ratintvl?. I assumed that it was and he had originally assumed they were not. I believe the correct interpretation is that 2.5 is a valid rational number for our use (as well as 53.34391039, to rub in the point). If I'm wrong here, correct me. Anyways, the weird behavior of Scheme saying that 2.5 was rational but not exact intrigued me. Numbers in Scheme seem to have a context as well that determines whether they are exact or inexact as the MIT Scheme Manual Says. I could see how this may have an affect on us later in the project. |
We'd better use exact rationals by Mike O'Donnell, 2002, Nov 07
Endpoints only? by Mark Kittisopikul, 2002, Nov 07
Let's stick to exact rationals in all cases by Mike O'Donnell, 2002, Nov 07
Robby Findler confirms that all Scheme reals are rationals by Mike O'Donnell, 2002, Nov 11
inexact->exact by Mark Kittisopikul, 2002, Nov 07
Don't use inexact->exact: it just pretends that something is exact by Mike O'Donnell, 2002, Nov 07
to: