Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Cases

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50423] Cases
  • From: "Blimbaum, Jerry AA R22" <jerry.blimbaum at navy.mil>
  • Date: Fri, 3 Sep 2004 03:35:08 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Given:   x = {a,b,c,d,d};

Applying   Cases[x,d]   gives an output of {a,b,c}......

However, Cases[x,Not[d]] gives as output an empty list  { }... I
expected   {a,b,c}.....

Why didnt I get that?

This issue came up when using Thread on vectors...and in some cases the
Thread resulted in 0 == 0  so it's output in the list  was 
True....and I
wanted to remove them....

thanks.....jerry blimbaum


  • Follow-Ups:
    • Re: Cases
      • From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
  • Prev by Date: Re: Re: newbie is looking for a customDistribution function
  • Next by Date: definite and indefinite Integrate
  • Previous by thread: Martix reconstruction by tensors of nonlinearity in an interger sequence
  • Next by thread: Re: Cases