Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Solving a parametric linear system of inequalit...' topicStudent Support Forum > General > "Solving a parametric linear system of inequalit..."

Next Comment >Help | Reply To Topic
Author Comment/Response
David
08/20/10 05:01am

Hello!

I'm trying to get solution for x and y in the following system using Mathematica 7.

(1) |x - A| >= |y - A| iff 0 <= A <= 1/2
(2) |x - A| < |y - A| iff 1/2 < A <= 1

where 0 <= x <= 1 and 0 <= y <= 1.

I'm solving for reals.

Ive rewritten this problem and asked Mathematica. This is the code:

Resolve[
Exists[{x,y},0<=x<=1&&0<=y<=1,
ForAll[{A,B},1/2<A<=1&&0<=B<=1/2,
Abs[x-A]< Abs[y-A]&&Abs[x-B]>=Abs[y-B]
]
]
]

Which yields True, but Id like to get a straight answer -- for which x and y is this true.

Note I used two parameters, A and B, because you cannot expect A<=1/2 and 1/2<A to hold true at the same time.

(I guessed one solution, which is 1 and 0 for x and y respectively.)

Any ideas? Thanks to anyone trying to help!


URL: ,

Subject (listing for 'Solving a parametric linear system of inequalit...')
Author Date Posted
Solving a parametric linear system of inequalit... David 08/20/10 05:01am
Re: Solving a parametric linear system of inequ... Peter Pein 08/23/10 9:22pm
Re: Re: Solving a parametric linear system of i... David 08/25/10 04:16am
Next Comment >Help | Reply To Topic