Equal - Maple Help

Online Help

All Products    Maple    MapleSim


PolyhedralSets

  

Equal

  

tests equality of two polyhedral sets

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Equal(ps1, ps2)

Parameters

ps1, ps2

-

polyhedral sets to be compared

Description

• 

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.

Examples

withPolyhedralSets:

Sets constructed with different relations, but corresponding to the same set of points are considered equal.

set1PolyhedralSet0x:set2PolyhedralSet0x,1x:Equalset1,set2

true

(1)

Two cubes defined with different coordinates are not considered equal

c1ExampleSets:-Cubea,b,c

c1{Coordinates:a,b,cRelations:c1,c1,b1,b1,a1,a1

(2)

c2ExampleSets:-Cubex,y,z

c2{Coordinates:x,y,zRelations:z1,z1,y1,y1,x1,x1

(3)

Equalc1,c2

false

(4)

Compatibility

• 

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]

PolyhedralSets