Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sign/1 lacking #17

Open
UWN opened this issue Mar 18, 2022 · 2 comments
Open

sign/1 lacking #17

UWN opened this issue Mar 18, 2022 · 2 comments

Comments

@UWN
Copy link

UWN commented Mar 18, 2022

?- X #= sign(-10).
caught: error(domain_error(clpz_expression,sign(-10)),unknown(sign(-10))-1)

Expected: X = -1.

See also this comment.

@UWN
Copy link
Author

UWN commented May 6, 2022

?- 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.

@UWN UWN closed this as completed May 6, 2022
@UWN
Copy link
Author

UWN commented Feb 8, 2023

@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

@UWN UWN reopened this Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant