Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compute an integral from data points

Status
Not open for further replies.

jcmbl

New member
Oct 22, 2004
31
Hi guys,

I have 2 weird sets of points to define 2 curves. I need to compute the area between these two. Is there any straightforward way to do it? The position of the curves is changing with respect to X axis, so I'd need a general methodology to do my task, not just for a specific set of points.
I'd appreciate any help.

Cheers
 
Replies continue below

Recommended for you

Why not take the difference of the two numerical integrals?

Assuming, of course, you know what the interval is to start with.

TTFN



 
"Why not take the difference of the two numerical integrals?"

Or why not take the integral of the differences between the two curves?



Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
I assumed that the points on the two curves might not line up. If they dno't line up, you'd have to do interpolation first.

If you run the numerical integrals separately, you can do that in Excel.

TTFN



 
I was just being silly (mostly)

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
sorry guys for the stupid question. I did some drawings to help me understand the area I needed, but it was proved I was doing something silly (I was getting some open segments of the curves which I couldnt compute). Of course the area is the difference between the 2 curves, although I'm not newbie at all to integrals, but it just slipped.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor