MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Different cases in Solve


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
> 



  • Prev by Date: FYI, Tally is still broken.
  • Next by Date: Re: countrydata shape - which projection?
  • Previous by thread: Re: Different cases in Solve
  • Next by thread: Re: Different cases in Solve