PolyhedralSets
Equal
tests equality of two polyhedral sets
Calling Sequence
Parameters
Description
Examples
Compatibility
Equal(ps1, ps2)
ps1, ps2
-
polyhedral sets to be compared
Returns true if ps1 and ps2 are the same set and false otherwise.
For sets to be equal, they must have the same coordinates. Sets with different coordinate names are considered to be different.
with⁡PolyhedralSets:
Sets constructed with different relations, but corresponding to the same set of points are considered equal.
set1≔PolyhedralSet⁡0≤x:set2≔PolyhedralSet⁡0≤x,−1≤x:Equal⁡set1,set2
true
Two cubes defined with different coordinates are not considered equal
c1≔ExampleSets:-Cube⁡a,b,c
c1≔{Coordinates:a,b,cRelations:−c≤1,c≤1,−b≤1,b≤1,−a≤1,a≤1
c2≔ExampleSets:-Cube⁡x,y,z
c2≔{Coordinates:x,y,zRelations:−z≤1,z≤1,−y≤1,y≤1,−x≤1,x≤1
Equal⁡c1,c2
false
The PolyhedralSets[Equal] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
PolyhedralSets[`in`]
PolyhedralSets[`subset`]
PolyhedralSets[PolyhedralSet]
Download Help Document