|
Programs (Fortran)
|
|
Roots of a single variable function f(x)=0 Integration of a single variable function f(x) Interpolation (single variable) Initial value problem in ordinary differential equations Initial value problem in ordinary differential equations Initial value problem in ordinary differential equations Random numbers Minimum of a single variable function f(x) Eigenvalue problem Physics programs: Projectile motion with air resustance (proj02a.f). The program can run calculations in one of the following methods: modified Euler, Runge-Kutta 4th order, and Fehlberg fourth-fifth order Runge-Kutta method. To run the code following programs should be included: euler22m.f, rk4_d22.f, rkf45.f. All initial data are in the file cannon.ini. Random walk in 2D: The program (rwalk1.f) calculates the average distance R to be from the origin point after N steps Random walk in a 2D city: A random walker is randomly placed on a two-dimension lattice of L sites in a row (like a city with L+1 blocks in a row). The program (rwalk2.f) calculates the average distance D (or the average number of blocks) to go to be out of the city limits. Synchronized random walks: (see the description of the problem in project 3, problem 3) 2D Polymer simulation: random walk models that corresponds to the self-avoiding walk (SAW). This model consists of the set of all N-step walks starting from the origin subject to the global constrain that no lattice site can be visited more than once in each walk: rwalk4.f The gambler's ruin problem: gamble.f Motion of a planet around a star: planet1.for with initial data planet1.ini |