MathGroup Archive 2000

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

Search the Archive

how to differentiate a list?

  • To: mathgroup at
  • Subject: [mg25940] how to differentiate a list?
  • From: Rob <piovere at>
  • Date: Fri, 10 Nov 2000 02:40:18 -0500 (EST)
  • Organization: (using!)
  • Sender: owner-wri-mathgroup at

I needed to get the derivative of a time varying pulse to do some
operations.  As seen below, the only way I could figure how to do it
was to generate two lists, shifted by one sample and then subtract them:

del = 0.002; a = 12\[Pi]; b = \[Pi];
( s[t] is a function of t defining the pulse )

sd = Table[N[s[t]], {t, 0, 1, del}];
sd1 = Table[N[s[t]], {t, del, 1 + del, del}];
diff = sd - sd1;

I looked all over and I didn't find a list operation available to do
this. I bet
you Mathematica gurus know how to do this.  If so, could you enlighten me?

Thanks, Rob

  • Prev by Date: Re: Bug: Mathematica 4.0 vs. Win2k on ThinkPad
  • Next by Date: Re: Ordering polynomials from highest to lowest order
  • Previous by thread: Re: ProbabilityPlot
  • Next by thread: Re: how to differentiate a list?