Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Help on Function

  • To: mathgroup at
  • Subject: [mg3831] Re: Help on Function
  • From: roth at (Arnd Roth)
  • Date: Mon, 29 Apr 1996 00:30:22 -0400
  • Organization: Max-Planck-Institut fuer Medizinische Forschung
  • Sender: owner-wri-mathgroup at

In article <4lesps$e4m at>
Roberto Diego <roberto at> writes:

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


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

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


Arnd Roth
Abteilung Zellphysiologie
Max-Planck-Insitut fuer Medizinische Forschung
Postfach 10 38 20, D-69028 Heidelberg, Germany


  • 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