[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Numerical Differentiation and Integration of Array Data
From: |
c. |
Subject: |
Re: Numerical Differentiation and Integration of Array Data |
Date: |
Sat, 3 Dec 2011 08:00:20 +0100 |
On 2 Dec 2011, at 21:44, syberraith wrote:
> trapezoid integration algorithm.
that's already implemented in the "trapz" function and, anyways,
it is just as simple as this:
suppose you have a list of values y of a function f sampled at points x
intf = sum (.5*(y(1:end-1)+y(2:end))./dx)
this is completely vectorized, I doubt you'll be able to easily make it any
faster
in C or fortran, if you do I'd be interested in seeing the comparison.
c.
- Re: Numerical Differentiation and Integration of Array Data, (continued)
- Re: Numerical Differentiation and Integration of Array Data, c., 2011/12/07
- Re: Numerical Differentiation and Integration of Array Data, Przemek Klosowski, 2011/12/07
- Re: Numerical Differentiation and Integration of Array Data, syberraith, 2011/12/07
- Re: Numerical Differentiation and Integration of Array Data, c., 2011/12/08
- Re: Numerical Differentiation and Integration of Array Data, syberraith, 2011/12/09
- Re: Numerical Differentiation and Integration of Array Data, c., 2011/12/07
- Message not available
- Re: Numerical Differentiation and Integration of Array Data, Carlo de Falco, 2011/12/03
- Re: Numerical Differentiation and Integration of Array Data, syberraith, 2011/12/03
- Re: Numerical Differentiation and Integration of Array Data, syberraith, 2011/12/03
- Re: Numerical Differentiation and Integration of Array Data, syberraith, 2011/12/03
- Re: Numerical Differentiation and Integration of Array Data,
c. <=
Fwd: Re: Numerical Differentiation and Integration of Array Data, Martin Helm, 2011/12/07