Opened 20 years ago
Closed 20 years ago
#261 closed defect (invalid)
Union of Sets doesn't work
Reported by: | danirus | Owned by: | danirus |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | SetAlgebra | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description
Given the code:
Real divisibleX8(Real x) { x % 8 == 0 };
Real divisibleX12(Real x) { x % 12 == 0 };
Set rango = Range(0,100,4);
Set rangoDivX8 = Select(rango, divisibleX8);
Set rangoDivX12 = Select(rango, divisibleX12);
Set union = rangoDivX8 + rangoDivX12;
Doesn't return the correct union between both Sets.
Note: See
TracTickets for help on using
tickets.
This is not a bug.
A bug could be that the result Set hasn't been sorted.