Open UWN opened 2 years ago
?- X #= sign(X).
clpz:(X#=sign(X)), clpz:(X in-1..1). % clpz:(X#=sign(X)) not needed
Whenever X is -1..1 or less, replace sign(X) by X.
@triska: Is this too difficult to integrate?
?- X #= sign(X).
clpz:(X#=sign(X)), clpz:(X in-1..1), unexpected.
clpz:(X in-1..1). % expected
X in-1..1. % alternate formulation
Expected:
X = -1.
See also this comment.