ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 28 Jun 2013 05:10:21 +0200- simplifying rational inequality resultshttps://ask.sagemath.org/question/10287/simplifying-rational-inequality-results/The command
solve(abs((2*x-2)/(x-5)) <= 2/3, x)
yields
#0: solve_rat_ineq(ineq=2*abs(x-1)/abs(x-5)-2/3 <= 0)
[[x == -1, -6 != 0, -6 != 0], [x == -1, -6 != 0, -6 != 0, -6 != 0], [x
== -1, -6 != 0, -6 != 0], [x == -1, -6 != 0, -6 != 0, -6 != 0], [x == 2,
-3 != 0, -3 != 0], [x == 2, -3 != 0, -3 != 0, -3 != 0], [x == 2, -3 !=
0, -3 != 0], [x == 2, -3 != 0, -3 != 0, -3 != 0], [x == 1], [1 < x, x
< 2], [-1 < x, x < 1]]
Is there a way to simplify that output to get something like
[[-1 <= x, x <= 2]]
?
jondoFri, 28 Jun 2013 05:10:21 +0200https://ask.sagemath.org/question/10287/