MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: pick out an element from list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98066] Re: [mg98011] pick out an element from list
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sun, 29 Mar 2009 02:45:45 -0500 (EST)
  • References: <12357150.1238238842363.JavaMail.root@m02>

list = Range[5];

NestList[Rest[#] - First[#] &, list, Length[list] - 1]
{{1, 2, 3, 4, 5}, {1, 2, 3, 4}, {1, 2, 3}, {1, 2}, {1}}


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/ 


From: bahadir [mailto:bahadirgurbuz54 at hotmail.com]

i have a list with n element.i want to pick out an element from the =
list,
and to deduct the element from all the other residual elements. This =
process
is the first step. i must apply all elements of the list, invariably.
Namely, in conclusion, i will obtain n list with n-1 elements. now, i =
will
try to explain as numerically. let element number of the list be 2500. =
and i
am picking out the first element of the list. and i'm deducting the =
first
element from the residual elements of the list. and now, i have a list =
with
2499 elements.after that, i'm passing the second element, and i'm =
applying
the same processes. =C4=B1 can't do this, can anyone help me???




  • Prev by Date: Re: pick out an element from list
  • Next by Date: Re: pdf export problem
  • Previous by thread: Re: pick out an element from list
  • Next by thread: Re: pick out an element from list