MathGroup Archive 2001

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

Search the Archive

Re: Uniquely Subtracting Elements in a Flat List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29201] Re: Uniquely Subtracting Elements in a Flat List
  • From: "Drago Ganic" <drago.ganic at in2.hr>
  • Date: Sat, 2 Jun 2001 17:56:09 -0400 (EDT)
  • References: <9fad6s$j7b$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Alen,

Subtract @@@ Partition[{a, b, c, d} , 2, 1]

Greetings from Croatia,
Drago


"Alan" <kd7cyb at mac.com> wrote in message news:9fad6s$j7b$1 at smc.vnet.net...
> I need help taking a flat list, such as {a,b,c,d} and generating another
> list by successively subtracting a-b, b-c, c-d, so that the resulting
> list would be {a-b,b-c,c-d}.
> 
> Thanks,
> Alan
> 



  • Prev by Date: Re: Uniquely Subtracting Elements in a Flat List
  • Next by Date: Repeating decimals
  • Previous by thread: Re: Uniquely Subtracting Elements in a Flat List
  • Next by thread: Re: Uniquely Subtracting Elements in a Flat List