ValuesUnderConstraints
Equations
return as a list the equations of a value-under-constraints object
Calling Sequence
Parameters
Description
Examples
References
Compatibility
Equations(vc)
vc
-
ValueUnderConstraints
The command Equations(vc) returns as a list the constraints of vc of the form p = 0 where p is a polynomial in the variables of Symbols(vc) and whose coefficients are rational numbers.
Remarks
The equations used to construct a value-under-constraints object may differ from those printed by the command Equations(vc).
This is because when a value-under-constraints object is constructed, its constraints are simplified. See the details on the ValuesUnderConstraints:-Constraints help page.
with⁡ValuesUnderConstraints:
Create a value-under-constraints objects with no integer-valued symbol
vc1≔ValueUnderConstraints⁡1,a,b,c,d,a,b,c,d,∅
vc1≔value 1 when a=0,d≠0,0<c,0≤b
Print its value, its constraints, its symbols and its integer-valued symbols
Value⁡vc1;Constraints⁡vc1;Symbols⁡vc1;IntegerSymbols⁡vc1
1
a=0,d≠0,0<c,0≤b
a,b,c,d
∅
Print its equations, inequations, non-negative inequalities and positive inequalities
Equations⁡vc1;Inequations⁡vc1;PositiveInequalities⁡vc1;NonNegativeInequalities⁡vc1
a=0
d≠0
0<c
0≤b
Create another value-under-constraints objects where all symbols are integer-valued
vc2≔ValueUnderConstraints⁡2,a,b,c,d,a,b,c,d,a,b,c,d
vc2≔value 2 when a=0,d≠0,0≤b,0≤c−1
Value⁡vc2;Constraints⁡vc2;Symbols⁡vc2;IntegerSymbols⁡vc2
2
a=0,d≠0,0≤b,0≤c−1
Equations⁡vc2;Inequations⁡vc2;PositiveInequalities⁡vc2;NonNegativeInequalities⁡vc2
0≤b,0≤c−1
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[Equations] command was introduced in Maple 2025.
For more information on Maple 2025 changes, see Updates in Maple 2025.
See Also
ValuesUnderConstraints[Constraints]
ValuesUnderConstraints[Equations]
ValuesUnderConstraints[HasInconsistentConstraints]
ValuesUnderConstraints[Inequations]
ValuesUnderConstraints[IntegerSymbols]
ValuesUnderConstraints[NonNegativeInequalities]
ValuesUnderConstraints[PositiveInequalities]
ValuesUnderConstraints[Symbols]
ValuesUnderConstraints[Value]
ValuesUnderConstraints[ValueUnderConstraints]
Download Help Document