Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: what's wrong?!!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115682] Re: what's wrong?!!
  • From: Daniel Lichtblau <danl at wolfram.com>
  • Date: Tue, 18 Jan 2011 05:50:20 -0500 (EST)

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?!!