Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7823 > unrolled thread

Re: how can one use mathematica get the approximate derivative of {x,y} data points?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-01-14 22:13 +0000
Last post2012-01-14 22:13 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: how can one use mathematica get the approximate derivative of {x,y} data points? Bob Hanlon <hanlonr357@gmail.com> - 2012-01-14 22:13 +0000

#7823 — Re: how can one use mathematica get the approximate derivative of {x,y} data points?

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-01-14 22:13 +0000
SubjectRe: how can one use mathematica get the approximate derivative of {x,y} data points?
Message-ID<jesumi$cj2$1@smc.vnet.net>
data = {#, Cos[#]} & /@ RandomReal[{0, 2 Pi}, 20];

f = Interpolation[data];

Plot[{f[x], f'[x]}, {x, Min[data[[All, 1]]], Max[data[[All, 1]]]}]


Bob Hanlon


On Sat, Jan 14, 2012 at 2:53 AM, Michael B. Heaney <mheaney@alum.mit.edu> wrote:
> Hi,
>
> I have a set of {x,y} data points:
>
>  {{0.03512, -0.5}, {0.0351181, -0.499}, ... {-0.113972, 0.699}, {-0.115072,
> 0.7}}
>
> These data points look like a function y=f(x) when plotted on the x-y axes.
> However, I do not know what the function f(x) is. But I need to get the
> approximate derivative df/dx, as another set of data points. How can one
> use Mathematica to do this?
>
> Thanks,
>
> Michael
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web