| 5 | There are three methods which are using for calculation definite integrals in Fortran. |
| 6 | First is rectangle method, where the function is integrated using segment integration |
| 7 | and like a resultant we obtain rectangle formula. Second is trapeze method and the same like |
| 8 | in the first method after integration we obtain the trapeze formula. And the third method is |
| 9 | Simpson method where the function which is integrated, is parabolic and after integration |
| 10 | we obtain Simpson's formula. In all methods are used segment integration, which means that |
| 11 | interval of integration a and b is divided into N segments. The splitting points xn are |
| 12 | called nodes. |
| 13 | In this program we calculate the same integral but using different methods the get the |
| 14 | difference between each method . |
| 15 | |
6 | | #!fortran |
7 | | !There are three methods which are using for calculation definite integrals in Fortran. |
8 | | !First is rectangle method, where the function is integrated using segment integration |
9 | | !and like a resultant we obtain rectangle formula. Second is trapeze method and the same like |
10 | | !in the first method after integration we obtain the trapeze formula. And the third method is |
11 | | !Simpson method where the function which is integrated, is parabolic and after integration |
12 | | !we obtain Simpson's formula. In all methods are used segment integration, which means that |
13 | | !interval of integration a and b is divided into N segments. The splitting points xn are |
14 | | !called nodes. |
15 | | !In this program we calculate the same integral but using different methods the get the |
16 | | !difference between each method |
| 17 | #!fortran |