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

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

> 

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

(1)
> 

vc2≔ValueUnderConstraints⁡N2−4,M,N,,N−4,,,N

vc2≔value N2−4 when 0≤N−4

(2)
> 

vc3≔ValueUnderConstraints⁡N2−4,N,M,,N−4,,,N

vc3≔value N2−4 when 0≤N−4

(3)
> 

vc4≔ValueUnderConstraints⁡5,M,N,N−3,,,,N

vc4≔value 5 when −N+3=0

(4)

Compare four pairs of value-under-constraints objects

> 

AreEqual⁡vc1,vc2

false

(5)

Note that the variable names matter

> 

AreEqual⁡vc1,vc3

false

(6)

Note that the variable order has no impact on the comparison

> 

AreEqual⁡vc2,vc3

true

(7)

 

> 

AreEqual⁡vc1,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]