 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
Re: [MATHCAD] Calculating area under a curve
| Re: [MATHCAD] Calculating area under a curve |
|
Author: Drobinso
Posted: Mon, 14 Sep 1998 17:42:57 +0100
|
I assume that your two data sets are holding the x and y data. There are
many ways of doing what you want. Here are two that instantly come to mind.
1) Fun way, use one of the function fitting routines to obtain a
polynomial, or other suitable analytic approximation to the data, then use
the symbolic integration function and integrate between the lower and upper
limits of your data.
2) Mundane way, sort your x data into ascending order, remembering to
leave the y data associated with the corresponding x values, if they shift.
xn,yn and xn+1,yn+1 define a trapezium which you calculate its area.
Similarly xn+1,yn+1 and xn+2,yn+2 form a butt joining trapezium, and so on
right across your curve. Simply sum the area's of all of the trapeziums.
I am sure the other guy's will have much more elegant solutions. I look
forward to seeing them
Dave Robinson
Integral Vision
To unsubscribe: Send in the body: unsubscribe mathcad
To: "majordomo"
|
[View Complete Thread]
Previous by date: Re: [MATHCAD] Calculating area under a curve, Jacqui Cheswick
Next by date: RE: [MATHCAD] FIR - phase response, Ted Diehl-ETD012
Previous thread: [MATHCAD] FIR - phase response, Legate, Ian
Next thread: [MATHCAD] FIR - phase response, Legate, Ian
|
|
|