Numerical Integration in 3D Space: Fortran 90 Help and Insights | TheIsingGuy

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
TheIsingGuy
Messages
20
Reaction score
0
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
 
Physics news on Phys.org
CFDFEAGURU said:
You should visit the following site.

http://www.nrbook.com/a/bookf90pdf.php

Hope this helps.

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...