Re: Help on Function
- To: mathgroup at smc.vnet.net
- Subject: [mg3838] Re: Help on Function
- From: gaylord at ux1.cso.uiuc.edu (richard j. gaylord)
- Date: Mon, 29 Apr 1996 00:31:37 -0400
- Organization: university of illinois
- Sender: owner-wri-mathgroup at wolfram.com
In article <4lesps$e4m at dragonfly.wolfram.com>, Roberto Diego <roberto at medusa.es> wrote: > Hi people, > > Could you please help me? I4m trying to write a function (not procedure > if possible) that works on a list such as {a1, a2, a3, a4, ...} and > returns a list {a2/a1, a3/a2, a4/a3, ...}. I know it should be an easy > task but I4m a newbe... > > Thanks a lot Rest[list/RotateRight[list]] Rest[#/RotateRight[#]]&[list] -- "if you're not programming functionally, then you're programming dysfunctionally" ==== [MESSAGE SEPARATOR] ====