We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Check this:
sage: assume(x, 'real') sage: bool(x <= abs(x)) True
but
sage: bool(-x <= abs(x)) False
and even
sage: bool(-x <= abs(-x)) False
(so this is a bit inconsistent).
Solve works here, but the set of solutions is not well simplified:
sage: solve(x <= abs(x), x) #0: solve_rat_ineq(ineq=_SAGE_VAR_x <= abs(_SAGE_VAR_x)) [[x == 0], [0 < x], [x < 0]] sage: solve(-x <= abs(x), x) #0: solve_rat_ineq(ineq=-_SAGE_VAR_x <= abs(_SAGE_VAR_x)) [[x == 0], [x < 0], [0 < x]]
(so it also gives a debug message; see #22018)
Component: symbolics
Keywords: abs
Issue created by migration from https://trac.sagemath.org/ticket/22025
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Check this:
but
and even
(so this is a bit inconsistent).
Solve works here, but the set of solutions is not well simplified:
(so it also gives a debug message; see #22018)
Component: symbolics
Keywords: abs
Issue created by migration from https://trac.sagemath.org/ticket/22025
The text was updated successfully, but these errors were encountered: