Monday, May 24, 2010

Trapezoidal Method in C?

The program will do simple numerical integration using the trapezoidal method. The program will only integrate one function. If you wish to integrate a new function you must enter it into the source code and recompile. You will initially set up the program to integrate the function f(x) = e^-x2.





The program will prompt the user to enter the beginning and ending points (reals, but C will allow integer input) for the interval over which the integration will be performed and will ask for the number of subintervals (an integer) to be used for the computation. The integral will be computed and the value displayed.

Trapezoidal Method in C?
Yes, the program will do lots of stuff. But what exactly is your question.
Reply:You didn't explain what you wanted to know. Did you want someone to write the code? To explain how to program Trapezoidal method? An link to some example code? You just gave a long list of instructions. Report It



No comments:

Post a Comment