Question confused about mult_ratintvl test cases 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #1, due Friday 8 November
Date: 2002, Nov 06
From: Aaron Baum <aibaum@uchicago.edu>

Since we have this definition:

(mult_ratintvl ri1 ri2) returns the ratintvl containing all products of one real in ri1 times one real in ri2

then shouldn't the value 4/9 be in the resulting interval of

(mult_ratintvl
     (make_ratintvl 1/3 2/3)
     (make_ratintvl 4/3 5/3))

since 1/3 * 4/3 = 4/9 ?

The reason I ask is because in the test cases this value is not included in the result being checked:

(testcase
 (equal_ratintvl?
   (mult_ratintvl
     (make_ratintvl 1/3 2/3)
     (make_ratintvl 4/3 5/3))
   (make_ratintvl 4/3 10/3))
 #t)

as 4/9 < 4/3

An analogous comment could be made for all other test cases listed for mult_ratintvl, so I have a feeling I am confused about the function of mult_ratintvl. could you explain this situation for me?


Messages

1. Feedback Expect errors in the test case files by Mike O'Donnell, 2002, Nov 07
2. More test case errors by Katie Edmonds, 2002, Nov 07
3. More more test case errors by Katie Edmonds, 2002, Nov 07
1. More Check my message below by Benedict Singer, 2002, Nov 07
4. More ope test case errors by Katie Edmonds, 2002, Nov 07
1. Agree And more... by Benedict Singer, 2002, Nov 07
2. More new ope test file by Katie Edmonds, 2002, Nov 07
1. Idea Use diff to compare files by Mike O'Donnell, 2002, Nov 07
2. Agree Looks good; new tests going up soon by Benedict Singer, 2002, Nov 07
5. More sel test cases by Katie Edmonds, 2002, Nov 07
1. Note no test case for mid_ratintvl->rational by Ivan Beschastnikh, 2002, Nov 08

to: "confused about mult_ratintvl test cases"