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: [mg98085] Re: [mg98011] pick out an element from list
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 29 Mar 2009 02:49:21 -0500 (EST)
  • Reply-to: hanlonr at cox.net

list = {a, b, c, d};

n = 1; Drop[list - #, {n++}] & /@ list

{{b - a, c - a, d - a},
    {a - b, c - b, d - b},
    {a - c, b - c, d - c},
    {a - d, b - d, c - d}}



Bob Hanlon


On Sat, Mar 28, 2009 at 8:51 AM , bahadir wrote:

> 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. =EF=BF=BD=EF=BF=BD can't do this, can anyone help me???


  • Prev by Date: Re: rules on vector sequence
  • Next by Date: Re: pick out an element from list
  • Previous by thread: Re: pick out an element from list
  • Next by thread: Re: pick out an element from list