Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Numerical integration help!

  1. Jul 8, 2009 #1
    I want to integrate a function in 3D space, and then plot the integrated function, to compare with my analytical solution, I am using Fortran 90, I have no problem integrating, I am just not sure how I can plot the resulting function out. I am currently thinking about piecewise integration, using small intervals with only 1 trapezium, where I take each trapezium, find its area and divide by dx(its height) to give the average value of the 2 bases, which I am approximating as the value of the function.

    I would be grateful if someone could share some insights on this problem.

    must appreciated. TheIsingGuy
  2. jcsd
  3. Jul 14, 2009 #2
  4. Jul 14, 2009 #3
    Thanks. I have figured it out anyways. I already knew about the recipes book and NAG libraries but what I had in about 8 lines of code it took them about 2 pages...
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook