ValuesUnderConstraints
AreEqual
check whether two value-under-constraints objects are equal
Calling Sequence
Parameters
Description
Examples
References
Compatibility
AreEqual(vc1,vc2)
vc1
-
ValueUnderConstraints
vc2
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 =
with⁡ValuesUnderConstraints:
Create four value-under-constraints objects
vc1≔ValueUnderConstraints⁡M2−4,M,N,,M−4,,,N
vc1≔value M2−4 when 0≤M−4
vc2≔ValueUnderConstraints⁡N2−4,M,N,,N−4,,,N
vc2≔value N2−4 when 0≤N−4
vc3≔ValueUnderConstraints⁡N2−4,N,M,,N−4,,,N
vc3≔value N2−4 when 0≤N−4
vc4≔ValueUnderConstraints⁡5,M,N,N−3,,,,N
vc4≔value 5 when −N+3=0
Compare four pairs of value-under-constraints objects
AreEqual⁡vc1,vc2
false
Note that the variable names matter
AreEqual⁡vc1,vc3
Note that the variable order has no impact on the comparison
AreEqual⁡vc2,vc3
true
AreEqual⁡vc1,vc4
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.
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]
Download Help Document