Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15985 > unrolled thread
| Started by | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| First post | 2011-02-08 10:08 +0000 |
| Last post | 2011-02-08 10:08 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Help with Delete cases "Harvey P. Dale" <hpd1@nyu.edu> - 2011-02-08 10:08 +0000
| From | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| Date | 2011-02-08 10:08 +0000 |
| Subject | Re: 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 ______________________________________________________________________
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web