Name | Description |
---|---|
ErrorFunction.py | The error function by numerical integration |
linalg_svd_code.py | Singular value decomposition |
Make_RndmData.py | Generate pseudo-random data and write to a csv file |
odesim_MoDecay.py | Solve a system of simultaneous 1-D ODEs |
odesim_pendulum_adapt.py | Solve a system of simultaneous ODEs using adaptive step size |
odesim_DrivenSHM_adapt.py | SHO with periodic driving function |
laplace.py | Laplace equation of a box by Jacobi method |
poisson.py | Poisson equation of a region with two charges by over-relaxed Gauss-Seidel |
heat.py | 1-D heat equation by Forwarward Time-Centered Space (FTCS) method |
WaveEqn_REB.py | Wave equation by Fourier transform spectral method |
decay.py | Simulation of first-order radioactive decay by random sampling of decay probabilities over time steps |
craps.py | Simuilates rolling two six-sided dice and plots a histogram of the resulting sums |
decay_expo.py | First order decay by drawing variates for decay times from an exponential distribution |
N-Body_Problem.py | Finds the trajectories of N bodies resulting from their mutual gravity, starting with their masses, initial positions, and initial velocities. Uses fourth-order Runge-Kutta with adaptive time step. |
Copyright © 26March 2023.
Revised: 19 April 2024. Maintained by Richard Barrans.
URL: http://www.barransclass.com/phys4840/pyfiles/index.html