# Changes between Version 11 and Version 12 of fortran

Ignore:
Timestamp:
Oct 18, 2016, 6:19:19 PM (4 years ago)
Comment:

Move comments out

Unmodified
Added
Removed
Modified
• ## fortran

 v11 == 1. Integral function calculation using trapeze, rectangle and Simpson method == There are three methods which are using for calculation definite integrals in Fortran. First is rectangle method, where the function is integrated using segment integration and like a resultant we obtain rectangle formula. Second is trapeze method and the same like in the first method after integration we obtain the trapeze formula. And the third method is Simpson method where the function which is integrated, is parabolic and after integration we obtain Simpson's formula. In all methods are used segment integration, which means that interval of integration a and b is divided into N segments. The splitting points xn are called nodes. In this program we calculate the same integral but using different methods the get the difference between each method . {{{ #!fortran !There are three methods which are using for calculation definite integrals in Fortran. !First is rectangle method, where the function is integrated using segment integration !and like a resultant we obtain rectangle formula. Second is trapeze method and the same like !in the first method after integration we obtain the trapeze formula. And the third method is !Simpson method where the function which is integrated, is parabolic and after integration !we obtain Simpson's formula. In all methods are used segment integration, which means that !interval of integration a and b is divided into N segments. The splitting points xn are !called nodes. !In this program we calculate the same integral but using different methods the get the !difference between each method #!fortran real x,dx,s a=-0.5 == 2. Integral function calculation using Simpson method  == Calculate an integral using only Simpson method. Look at program 1 for introduction {{{ #!fortran ! Calculate an integral using only Simpson method. Look at program 1 for introduction real x,dx,s a=0 == 3. Calculation dependence between integral function and coordinates == To compare the resultants which are obtained in the program 1 with a graphical integration and to get the precision of integration, in this program first is obtained the graph of the integral dependence in Origin,and after that it is compared with the resultants in program 1 {{{ #!fortran !To compare the resultants which are obtained in the program 1 with a graphical integration !and to get the precision of integration, in this program first is obtained the graph of the !integral dependence in Origin,and after that it is compared with the resultants in program 1 real x,dx, a, b open(1,file='y2.dat', status='unknown')!the document y2 is in the project folder end }}}