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