Wednesday, 23 October 2013

C Program to Evaluate Functions Using Trapezoidal Rule


  The following Program evaluates the definite integrals of sin(x), cos(x) and ex. I have to confess that the program does not serve any practical purpose other than illustrating the working of Trapezoidal Rule. Trapezoidal Rule is a technique for approximating the definite integral shown below.
Click here to view the Wikipedia Article on Trapezoidal Rule.

Figure Below Shows a Sample Output

No comments:

Post a Comment