Computational Physics using MATLAB®
kevin Berwick Page 1 Computational Physics using MATLAB kevin Berwick Page 2 Table of Contents 6 1. Uranium Decay ........................................ ........................................ ....................................... 7 3. The Pendulum ........................................ ........................................ ........................................ 9 Solution using the Euler method ........................................ ........................................ ...... 9 Solution using the Euler-Cromer method. ........................................ ........................... 10 Simple Harmonic motion example using a variety of numerical approaches ............. 11 Solution for a damped pendulum using the Euler-Cromer method. ............................ 16 Solution for a non-linear, damped, driven pendulum :- the Physical pendulum, using the Euler-Cromer method.
Kevin Berwick Page 7 1. Uranium Decay % % 1D radioactive decay % by Kevin Berwick, % based on 'Computational Physics' book by N Giordano and H Nakanishi % Section 1.2 p2 % Solve the Equation dN/dt = -N/tau N_uranium_initial = 1000; %initial number of uranium atoms
Download Computational Physics using MATLAB®
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: