Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7828
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: how can one use mathematica get the approximate derivative of {x,y} data points? |
| Date | 2012-01-14 22:06 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jesu95$ccl$1@smc.vnet.net> (permalink) |
On 1/14/2012 1:55 AM, Michael B. Heaney 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
>
> --
one way:
?Fit
data = {{0.03512, -0.5}, {0.0351181, -0.499}, {-0.113972,0.699}, {-0.115072, 0.7}}
f = Fit[data, {1, x, x^2}, x];
D[f, x]
--Nasser
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: how can one use mathematica get the approximate derivative of {x,y} data points? "Nasser M. Abbasi" <nma@12000.org> - 2012-01-14 22:06 +0000
csiph-web