Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15985 > unrolled thread

Re: Help with Delete cases

Started by"Harvey P. Dale" <hpd1@nyu.edu>
First post2011-02-08 10:08 +0000
Last post2011-02-08 10:08 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Help with Delete cases "Harvey P. Dale" <hpd1@nyu.edu> - 2011-02-08 10:08 +0000

#15985 — Re: Help with Delete cases

From"Harvey P. Dale" <hpd1@nyu.edu>
Date2011-02-08 10:08 +0000
SubjectRe: Help with Delete cases
Message-ID<iir4mo$6pi$1@smc.vnet.net>
Use Select instead of DeleteCases and use not-equal rather than equal:
Select[list,Mod[N - m(m+1)/2,P] !== 0]
	Best,
	Harvey


-----Original Message-----
From: KenR [mailto:ramsey2879@msn.com]
Sent: Monday, February 07, 2011 6:06 AM
Subject:  Help with Delete cases

I have a list== Range[3003]  I want to delete cases of n == m(m+1) mod P
from the list, but Delete cases only deletes cases matching a pattern,
i.e.

list == DeleteCases[list,Mod[N - m(m+1)/2,P] == 0] will definitely not
work.  I want to keep list, as the same identifier, throughout since
this is within a looping process. Any suggestions?


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web