Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80130] question
  • From: Ivan Egorov <egorov at bgu.ac.il>
  • Date: Mon, 13 Aug 2007 04:35:22 -0400 (EDT)

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.


  • Prev by Date: Re: [TS 20904]--Re:numbered lists problem
  • Next by Date: What is the most ieeficient code for Simultaneous equaitons??
  • Previous by thread: Re: question
  • Next by thread: Re: question