×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Compute an integral from data points

Compute an integral from data points

Compute an integral from data points

(OP)
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

RE: Compute an integral from data points

Why not take the difference of the two numerical integrals?

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

TTFN



RE: Compute an integral from data points

"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.

RE: Compute an integral from data points

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



RE: Compute an integral from data points

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.

RE: Compute an integral from data points

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources