|
[Date Index]
[Thread Index]
[Author Index]
Re: Help with Delete cases
- To: mathgroup at smc.vnet.net
- Subject: [mg116235] Re: Help with Delete cases
- From: Tomas Garza <tgarza10 at msn.com>
- Date: Tue, 8 Feb 2011 05:04:15 -0500 (EST)
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 at msn.com
> Subject: [mg116223] Help with Delete cases
> To: mathgroup at 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?
>
Prev by Date:
Re: Help with Delete cases
Next by Date:
NDSolve changed bahaviour in version 8?
Previous by thread:
Re: Help with Delete cases
Next by thread:
Re: Help with Delete cases
|