|
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?
|
Expect errors in the test case files by Mike O'Donnell, 2002, Nov 07
test case errors by Katie Edmonds, 2002, Nov 07
more test case errors by Katie Edmonds, 2002, Nov 07
Check my message below by Benedict Singer, 2002, Nov 07
ope test case errors by Katie Edmonds, 2002, Nov 07
And more... by Benedict Singer, 2002, Nov 07
new ope test file by Katie Edmonds, 2002, Nov 07
Use diff to compare files by Mike O'Donnell, 2002, Nov 07
Looks good; new tests going up soon by Benedict Singer, 2002, Nov 07
sel test cases by Katie Edmonds, 2002, Nov 07
no test case for mid_ratintvl->rational by Ivan Beschastnikh, 2002, Nov 08
to: