Re: Help on Function

• To: mathgroup at smc.vnet.net
• Subject: [mg3831] Re: Help on Function
• From: roth at sunny.mpimf-heidelberg.mpg.de (Arnd Roth)
• Date: Mon, 29 Apr 1996 00:30:22 -0400
• Organization: Max-Planck-Institut fuer Medizinische Forschung
• Sender: owner-wri-mathgroup at wolfram.com

```In article <4lesps\$e4m at dragonfly.wolfram.com>
Roberto Diego <roberto at medusa.es> writes:

> 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...

Try:

In[1]:= diego[list_List] := Drop[list, 1] / Drop[list, -1]

In[2]:= diego[{a1, a2, a3, a4}]
Out[2]=
a2  a3  a4
{--, --, --}
a1  a2  a3

Sincerely,

Arnd Roth
Abteilung Zellphysiologie
Max-Planck-Insitut fuer Medizinische Forschung
Postfach 10 38 20, D-69028 Heidelberg, Germany
http://sunny.mpimf-heidelberg.mpg.de/people/roth/ArndRoth.html

==== [MESSAGE SEPARATOR] ====

```

• Prev by Date: Re: ???? How to assign result from Solve to variable ????
• Next by Date: Re: ???? How to assign result from Solve to variable ????
• Previous by thread: Re: Help on Function
• Next by thread: Re: equations