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


Groups > comp.soft-sys.math.mathematica > #15808

Re: Help with Delete cases

From Tomas Garza <tgarza10@msn.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Help with Delete cases
Date 2011-02-08 10:04 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iir4eq$6hj$1@smc.vnet.net> (permalink)

Show all headers | View raw


Is this what you want?
list1=Range[3003];DeleteCases[list1,x_/;Mod[x (x+1)/2,3]==0];
-Tomas

> Date: Mon, 7 Feb 2011 06:06:03 -0500
> From: ramsey2879@msn.com
> Subject:  Help with Delete cases
> To: mathgroup@smc.vnet.net
>
> 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?
>
 		 	   		 

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Help with Delete cases Tomas Garza <tgarza10@msn.com> - 2011-02-08 10:04 +0000

csiph-web