MathGroup Archive 2011

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

Search the Archive

Re: what's wrong?!!


olfa wrote:
> Hi Mathematica community,
> 
> I try to use Case[exp,patt,Infinity]
> 
> for the first example it works:
> Cases[iP == i + v && kaP == 3^v,  iP == _ | kaP == _, Infinity]
> the output is  {iP == i + v, kaP == 3^v}
> 
> but not for the second one!!
>  Cases[yP == y + x - z, yP == _, Infinity]
> the output is  {}
> 
> why?!!
> 
> Thank you.

See

http://forums.wolfram.com/mathgroup/archive/2010/Dec/msg00003.html

and related responses. Upshot: replace Infinity with {0}.

Daniel Lichtblau
Wolfram Research


  • Prev by Date: Re: log expression not simplified
  • Next by Date: Re: log expression not simplified
  • Previous by thread: what's wrong?!!
  • Next by thread: Re: what's wrong?!!