TCLOSE gives incorrect result
Posted: Fri Mar 19, 2010 3:19 pm
I tried
tclose(relation{tuple{x 1, y 2}, tuple{x 2, y 3}, tuple {x 3, y 4}})
and got
RELATION {x INTEGER, y INTEGER} {
TUPLE {x 1, y 2},
TUPLE {x 2, y 3},
TUPLE {x 3, y 4}
}
I think I should have got
RELATION {x INTEGER, y INTEGER} {
TUPLE {x 1, y 2},
TUPLE {x 2, y 3},
TUPLE {x 2, y 3},
TUPLE {x 1, y 4},
TUPLE {x 2, y 4},
TUPLE {x 3, y 4}
}
Hugh
tclose(relation{tuple{x 1, y 2}, tuple{x 2, y 3}, tuple {x 3, y 4}})
and got
RELATION {x INTEGER, y INTEGER} {
TUPLE {x 1, y 2},
TUPLE {x 2, y 3},
TUPLE {x 3, y 4}
}
I think I should have got
RELATION {x INTEGER, y INTEGER} {
TUPLE {x 1, y 2},
TUPLE {x 2, y 3},
TUPLE {x 2, y 3},
TUPLE {x 1, y 4},
TUPLE {x 2, y 4},
TUPLE {x 3, y 4}
}
Hugh