Numerical Methods: Integration of given function using Trapezoidal rule in C

Source Code:

SHARE Numerical Methods: Integration of given function using Trapezoidal rule in C

You may also like...

2 Responses

  1. Anonymous says:

    why %6.4f ?? could you explain this please. Help would be much appreciated, because so far this is the cleanest most nice structured example of the Trapezoidal rule. I need help, because i got an exercise that is about numerical integration.

    Write a C-program which carries out “Numerical Integration” according to (1). Use data
    type double everywhere. “Play” with three different step sizes (b-a) by splitting up the area
    under f(x) into 10, 100 and 1000 trapezoids and compare the results.
    Preferably, use a function for the calculation of (1) and call it from main( ).

    So yeah ;/

Leave a Reply

Your email address will not be published. Required fields are marked *

Share