0
|
13081 Views
|
7 Replies
|
5 Total Likes
View groups...
Share
Share this post:
GROUPS:

# How to do numerical integration from data set?

Posted 11 years ago
 How to do numerical integration from a data set?
7 Replies
Sort By:
Posted 11 years ago
 Look up Interpolation and NIntegrate.  Here is an example:fun = Interpolation[{{0, 0}, {0.1, .3}, {0.5, .6}, {1, -.2}, {2, 3}}]NIntegrate[fun[x], {x, 0, 2}]
Posted 11 years ago
 Strongly related SE thread: How to integrate functions of linearly interpolated data?
Posted 10 years ago
 Use the Chop command. http://reference.wolfram.com/mathematica/ref/Chop.htmlOr you can use Re to get the real part of the complex number.
Posted 10 years ago
 What it means is that during the calculation there were two complex intermediate results whose imaginary components almost cancelled. If the calculation were done with exact numbers (Integers and Rationals), the imaginary components would have exactly cancelled.
Posted 10 years ago
 When I integrate using the definite integral symbol in conjunction with the N symbol I get a small complex numerical in addition to the correct answer. What does that mean and what action is necessary.Luke
Posted 10 years ago
 How do I import excell data to mathematica and inverse
Posted 10 years ago
 Please see these examples in the documentation. http://reference.wolfram.com/mathematica/howto/ImportASpreadsheet.htmlhttp://reference.wolfram.com/mathematica/howto/ExportASpreadsheet.html
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments