Re: Help with Delete cases
- To: mathgroup at smc.vnet.net
- Subject: [mg116258] Re: Help with Delete cases
- From: "Harvey P. Dale" <hpd1 at nyu.edu>
- Date: Tue, 8 Feb 2011 05:08:31 -0500 (EST)
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 at msn.com] Sent: Monday, February 07, 2011 6:06 AM To: mathgroup at smc.vnet.net Subject: [mg116258] [mg116223] 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 ______________________________________________________________________