Hi All(adsbygoogle = window.adsbygoogle || []).push({});

I am hoping someone can help me out with my problem.

I am sampling data from a flow meter every 10 seconds and storing it into a data historian. The readings are the instantaneous flow rate at the moment the data is sampled.

My problem is that I need to work out (based on the stored samples) the total flow over a given period (say 1 day). I have been advised that simpson's rule may offer a reasonable solution for integrating the area under the curve represented by the samples over the given time span.

Let me be frank, I am no good at math! I can find plenty of reference to simpson's rule on the web but I don't understand much of what I am reading.

The calculation engine supplied with the data historian supports vb script, external .exe's and its own scripting language (CalcScript).

I am hoping that some kind soul will take pity on me and help me out in understanding how to apply simpson's rule to my set of circumstances.

Any help is greatly appreciated.

ppamco

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Simpson's rule

**Physics Forums - The Fusion of Science and Community**