Changes between Version 12 and Version 13 of fortran
- Timestamp:
- Oct 18, 2016, 7:12:17 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
fortran
v12 v13 93 93 94 94 == 4. Calculation dependence between integral function and coordinates == 95 The introduction is the same like in program 3. But here the resultant of integration is compare with program 2. 95 96 {{{ 96 97 #!fortran 97 !The introduction is the same like in program 3. But here the resultant of integration is98 !compare with program 2.99 100 98 real x,dx, a, b 101 99 open(1,file='y2.dat', status='unknown')!the document y2 is in the project folder … … 111 109 112 110 == 5. Simpson formula for Simpson method of integration == 111 To understand the algorithm of how is working Simpson method, in this program is obtain how with Simpson formula and using the functions f1, f2 and f3 can be integrated a definite integral 113 112 {{{ 114 113 #!fortran 115 !To understand the algorithm of how is working Simpson method, in this program is obtain116 !how with Simpson formula and using the functions f1, f2 and f3 can be integrated a definite117 !integral.118 114 program Simpson 119 115 … … 151 147 }}} 152 148 == 6. Characteristics of the electron motion, which is located between charged coaxial rings == 149 To main characteristics if the electron motion are the coordinate and the velocity. This program it is a solution of a task which is written below. All units for the inputvalues are in CGS system. Between two coaxial rings, charged with q1=q2=1nC and their radius are equal to r1=1cm and r2=2cm, are located at distance 5 cm between each other. At halfway between the rings is located electron with initial energy equal to 0. Find the dependencies between the 150 velocity(energy)and the time,and electron coordinate with time. Also plot the phase trajectory V(x). And explain the resultants. 153 151 {{{ 154 152 #!fortran 155 !To main characteristics if the electron motion are the coordinate and the velocity.156 !This program it is a solution of a task which is written below. All units for the input157 !values are in CGS system.158 !Between two coaxial rings, charged with q1=q2=1nC and their radius are equal to r1=1cm159 !and r2=2cm, are located at distance 5 cm between each other. At halfway between the rings is160 !located electron with initial energy equal to 0. Find the dependencies between the161 !velocity(energy)and the time,and electron coordinate with time. Also plot the phase162 !trajectory V(x). And explain the resultants.163 153 164 154 program rings