Re: New user: Abs[] problem
- To: mathgroup at smc.vnet.net
- Subject: [mg50120] Re: [mg50079] New user: Abs[] problem
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Mon, 16 Aug 2004 06:45:25 -0400 (EDT)
- References: <200408140550.BAA15327@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On 14 Aug 2004, at 07:50, Edson.Brusque at smc.vnet.net wrote:
> *This message was transferred with a trial version of CommuniGate(tm)
> Pro*
> Hello,
>
> I'm starting Electrical Engineering and using Mathematica for
> helping me in Calculus e Algebra studies.
>
> I'm trying to solve this equation on Mathematica:
> x + 1 - |2x - 4| + |5 - x| = 0
>
> on the Math* notebook I'm typing:
> Solve[x + 1 - Abs[2x - 4] + Abs[5 - x] == 0,x]
>
> but only got an empty output: {{}}
>
> Someone please can help me get Math* to solve this?
>
> Thank you very much,
>
> Edson Brusque
Reduce[x + 1 - Abs[2*x - 4] + Abs[5 - x] == 0, x]
x == -1 || Re[x] >= 5 && Im[x] == 0
or if you know x is real:
Reduce[x + 1 - Abs[2*x - 4] + Abs[5 - x] == 0, x, Reals]
x == -1 || x >= 5
Andrzej Kozlowski
Chiba, Japan
http://www.mimuw.edu.pl/~akoz/
- References:
- New user: Abs[] problem
- From: Edson.Brusque@smc.vnet.net
- New user: Abs[] problem