Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15985
| From | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Help with Delete cases |
| Date | 2011-02-08 10:08 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iir4mo$6pi$1@smc.vnet.net> (permalink) |
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 ______________________________________________________________________
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Help with Delete cases "Harvey P. Dale" <hpd1@nyu.edu> - 2011-02-08 10:08 +0000
csiph-web