Re: question
- To: mathgroup at smc.vnet.net
- Subject: [mg80184] Re: [mg80130] question
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Tue, 14 Aug 2007 07:08:36 -0400 (EDT)
- References: <15087956.1187036502843.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
This is obviously homework. Bobby On Mon, 13 Aug 2007 03:35:22 -0500, Ivan Egorov <egorov at bgu.ac.il> wrote: > > Hello, I have 2 questions. > > I need to write a function maxima[lis_List] which, given a list of > numbers, > produces a list of those numbers greater than all those that precede > them. For example maxima[{ 9, 2, 10, 3, 14, 9}] returns { 9, 10, 14}. > You need to use recursion, pattern matching, Select and Join. > I also need to write a function derivList[f, x, n_Integer] that returns > the list > of first n derivatives of themathematical function f (x ) , that is, > { f ( x ) , f ' ( x ) , f ' ' ( x ) ,..., f n(x )} . Then, operate > your derivList implementation on Exp[-x] Sin[x] to generate the list > of derivatives up to the fifth one (that is, returning {f ( x) , > f ' ( x ) ,..., f (5) (x )}). Use Plot to plot the results for the > range 0<=x<=10 . Use the PlotStyle option to generate a different color > for each curve. > > I realy don't understand what they want in second question. > > > Thanks. > > I hope that now is readable. > > -- DrMajorBob at bigfoot.com