Page 1 sur 1

Simplifying a combination of atomic inequalities

Publié : ven. juil. 18, 2014 11:34 am
par jondo
How can I simplify

Code : Tout sélectionner

(x == 0 and 1 < y and 0 != 0) or (x == 0 and y < 0 and 0 != 0)
(from Sage trac) to "false" (or find the empty solution set)?

I have had a look at the pdf manual, but did not get it.

The following does not work:

Code : Tout sélectionner

giac: simplify((x == 0 and 1 < y and 0 != 0) or (x == 0 and y < 0 and 0 != 0))
0
giac: solve((x == 0 and 1 < y and 0 != 0) or (x == 0 and y < 0 and 0 != 0),[x,y])
NaN
By the way, the link to the online reference is broken on http://www-fourier.ujf-grenoble.fr/~par ... c.html#doc.

Re: Simplifying a combination of atomic inequalities

Publié : ven. juil. 18, 2014 11:43 am
par jondo
Also, can Giac somehow solve the original system of inequalities?

"solve" does not work:

Code : Tout sélectionner

Xcas: solve([x^2*y^2 <= x^2*y, x^2*y^2 > x^2*y],[x,y])
"[x,(x^2*y^2)<=(x^2*y),(x^2*y^2)>(x^2*y)] is not rational w.r.t. x Error: Bad Argument Value"

Re: Simplifying a combination of atomic inequalities

Publié : ven. juil. 18, 2014 12:57 pm
par jondo
Somehow similar:

Code : Tout sélectionner

Xcas: solve([abs(x-1) > 1, abs(x-2) > 1],x)
list[0>x,x>3]
works fine. But if I want to compute the solutions separately:

Code : Tout sélectionner

Xcas: s1:=solve(abs(x-1) > 1,x) 
list[0>x,x>2]
Xcas: s2:=solve(abs(x-2) > 1,x) 
list[1>x,x>3]
, how can I intersect s1 and s2?

Re: Simplifying a combination of atomic inequalities

Publié : ven. juil. 18, 2014 6:59 pm
par parisse
Sorry, there is currently nothing in giac for that.