Mathcad integrate issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mathcad integrate issue
Dear experts,
I have a dataset, and I need to calculate the areas of four regions within this dataset, as shown in the image.
I would like to use Mathcad's integration function to perform this calculation. How can I apply the integration function to the imported dataset in Mathcad?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I suppose you know, or at least have a way to determine, the range of index for each if the four regions. Then simply sum the numbers over the index range.
If you have a model that predicts the shape of the y values you could try a curve fit of the data with that model, and then use integration over your model function.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I know the range over which I want to integrate, but I am unsure how to express the imported dataset as a function in Mathcad for integration. How can I define a function based on the imported data and then perform the integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Your solution is very clear to me, thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
To be able to use Mathcad's numerical integration you have to turn your data into a function.
The easiest way (and I guess its as good as any as long as you don't know which function type to fit) is using linear interpolation:
Another way is to determine the position of the data in the matrix Po (the indices which relate to the desired limits of the integral) and use the trapezoid rule to calculate the integral.
MC15 sheet attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks.
I know how to do it!
