Simplifying a combination of atomic inequalities

Messages in english

Modérateur : xcasadmin

jondo
Messages : 8
Inscription : mar. juil. 15, 2014 8:29 am

Simplifying a combination of atomic inequalities

Message par jondo » ven. juil. 18, 2014 11:34 am

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.

jondo
Messages : 8
Inscription : mar. juil. 15, 2014 8:29 am

Re: Simplifying a combination of atomic inequalities

Message par jondo » ven. juil. 18, 2014 11:43 am

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"

jondo
Messages : 8
Inscription : mar. juil. 15, 2014 8:29 am

Re: Simplifying a combination of atomic inequalities

Message par jondo » ven. juil. 18, 2014 12:57 pm

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?

parisse
Messages : 5740
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Simplifying a combination of atomic inequalities

Message par parisse » ven. juil. 18, 2014 6:59 pm

Sorry, there is currently nothing in giac for that.

Répondre