Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

User Comments on Using Data Tool to Compute Area (2)

Return to Item Detail Page
Login to comment

Area under Curve

Author: Mark Kramer
Posted: February 27, 2017 at 2:34PM

I would like to know which method the data tool application uses to determine/calculate the area under the curve?

» reply

Re: Area under Curve

Author: Francisco Esquembre
Posted: Feb 28, 2017 at 4:41PM

> On Feb 27, 2017, Mark Kramer posted:
>
> I would like
> to know which method the data tool application uses
> to determine/calculate the area under the curve?

Hi,
Data used by DataTool is basically a polygonal curve made of a collection of points ([i],y[i]). Hence, the area is computed basically by adding up the area of each vertical polygon between x[i] and x[i+1].
If your question was related to whether DataTool used any integration algorithm (such as Simpson's rule)... no, it just uses a polygonal approximation.
Paco

» reply

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics