Re: Different cases in Solve
- To: mathgroup at smc.vnet.net
- Subject: [mg89600] Re: [mg89575] Different cases in Solve
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sat, 14 Jun 2008 05:30:20 -0400 (EDT)
- Reply-to: hanlonr at cox.net
Use Reduce
Reduce[a * x == b, x]
(b == 0 && a == 0) || (a != 0 && x == b/a)
Bob Hanlon
---- Aaron Fude <aaronfude at gmail.com> wrote:
> Hi,
>
> When one does Solve[a x == b, x], one gets {{x -> b/a}}. How does one
> get Mathematica to give you different solutions depending on cases: b/
> a if a nonzero, any number if a==b==0, and no solutions if a=0 and b
> is nonzero?
>
> Many thanks in advance!
>
> Aaron
>