ValuesUnderConstraints/AreEqual - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : ValuesUnderConstraints/AreEqual

ValuesUnderConstraints

  

AreEqual

  

check whether two value-under-constraints objects are equal

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

AreEqual(vc1,vc2)

Parameters

vc1

-

ValueUnderConstraints

vc2

-

ValueUnderConstraints

Description

• 

The command AreEqual(vc1,vc2) checks whether vc1 and vc2 have the same value and the same set of constraints.

Remarks

• 

The equality tests used to compare values and constraints are both the one of the binary operator =

Examples

withValuesUnderConstraints:

Create four value-under-constraints objects

vc1ValueUnderConstraintsM24,M,N,,M4,,,N

vc1value M24 when 0M4

(1)

vc2ValueUnderConstraintsN24,M,N,,N4,,,N

vc2value N24 when 0N4

(2)

vc3ValueUnderConstraintsN24,N,M,,N4,,,N

vc3value N24 when 0N4

(3)

vc4ValueUnderConstraints5,M,N,N3,,,,N

vc4value 5 when N+3=0

(4)

Compare four pairs of value-under-constraints objects

AreEqualvc1,vc2

false

(5)

Note that the variable names matter

AreEqualvc1,vc3

false

(6)

Note that the variable order has no impact on the comparison

AreEqualvc2,vc3

true

(7)

 

AreEqualvc1,vc4

false

(8)

References

  

Rui-Juan Jing, Yuzhuo Lei, Christopher F. S. Maligec, Marc Moreno Maza: "Counting the Integer Points of Parametric Polytopes: A Maple Implementation." Proceedings of Computer Algebra in Scientific Computing - 26th International Workshop (CASC) 2024: 140-160, Lecture Notes in Computer Science, vol. 14938, Springer.

Compatibility

• 

The ValuesUnderConstraints[AreEqual] command was introduced in Maple 2025.

• 

For more information on Maple 2025 changes, see Updates in Maple 2025.

See Also

ValuesUnderConstraints[Constraints]

ValuesUnderConstraints[Value]

ValuesUnderConstraints[ValueUnderConstraints]