close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

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.

Change History (1)

comment:1 Changed 20 years ago by danirus

Resolution: invalid
Status: newclosed

This is not a bug.
A bug could be that the result Set hasn't been sorted.

Note: See TracTickets for help on using tickets.