0

I have a data file with two columns. Column 1 is x-values and column 2 is f(x) values. I would like to integrate f(x) with respect to x. To load the data, I do this:

mydata = ReadList["/dataset0.txt", Number, RecordLists -> True];

It reads the data file correctly. Now how do I insert the corresponding columns in a Integrate function?

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
user3389597
  • 103
  • 1
  • 1
    related https://mathematica.stackexchange.com/q/18863/2079 – george2079 Sep 12 '17 at 01:19
  • 2
  • Welcome on MMA.SE, 2) that would be easier to help you with some dummy data (possiby using RandomReals, or pastebin.com), 3) you don't want to integrate, you want to approximate the integral, using data and an approximation scheme (which one? trapezoidal, etc.).
  • – anderstood Sep 12 '17 at 01:46
  • Thank you for helpful comments – user3389597 Sep 12 '17 at 12:56