← back to Teaching
Introduction.pdf: the overall introduction and motivation to the course as presented in class
Unit 1.pdf: basic numerical concepts
• variables and vectors (10thElement.m)
• plotting and scripts (sine.m, linlog.m, loglog.m, errbars.m)
• numerical derivatives (derivation.m, derivation2.m)
• numerical integration (integration.m, integratecos.m)
• applications (function.m/antiderivative.m, cannonball.m, trajectories.m, harmosc.m, TullyFisher.m)
Unit 2.pdf: Matrices & advanced plotting/scripting
• matrices (Cgenerate.m, Aextract.m, Afindfill.m, cannonball-colored.m)
• plotting scalar fields (x2+y2.m, sinxcosy.m, potential2D.m, potentials2D.m)
• plotting vector fields (vectorfield2D.m, vectorfield3D.m, force2D.m, force3D.m)
• rotations (rotation2D.m, rotsin.m, rotation3D.m)
• functions (use-statistic.m/statistic.m, use-oplot.m/oplot.m, use-ang2rad.m/ang2rad.m,force2D-dist2D.m/dist2D.m,log3.m)
, • conditions (sine-positive.m, ranfraction.m, cannonball-maximum.m)
, • if-clause (my_abs.m, calculation.m)
, • while-loops (simple-log3.m, prime.m)
• for-loops (fibonacci.m, my_sum.m, my_find.m, fac.m, matrix.m)
• switch statement (weekdays.m, units.m)
• applications (matrices.m, gravity.m/derivative.m, MaxwellBoltzmann.m/vecmax.m, charges.m, lissajous.m,
trajectory.m, dharmosc.m/dho_x.m, Lseries.m, montecarlo.m)
Unit 3.pdf: Linear systems & root finding
• linear systems (intersection.m, suitcase.m, cannonball-vinit.m, horse.m, unsolvable.m)
• root finding:
- bisection (bisection.m, bisection-parabola.m, bisec.m, bisection-fzero.m)
- Newton-Raphson (NewtonRaphson.m, NewRaph.m, NewtonRaphson-minimum.m)
• example: zero crossings of a vector (veczeros.m)
• applications (circle-exp.m, circuit.m, wheatstone.m, charges-unknown.m, use_equilib3m.m/equilib3m.m)
Unit 4.pdf: DATA ANALYSIS & STATISTICS
• mean, variance, median, and error bars (temperatures.m)
• probability distributions (random.m, normalise.m, cannonball-random.m, rabbit.m)
• fitting of data (fit3rdpolynomial.m, fitgauss.m)
• interpolation of data (use-linterpol.m/linterpol.m, use-p4interpol.m/p4interpol.m)
• I/O of data (cannonball-save.m, cannonball-load.m, GalaxiesReadWrite.m, GalaxiesPositions.m, Galaxies.dat)
• applications (planck-curve.m, freefall.m, jumper.m)
Unit 5.pdf: Differential equations
• ordinary differential equations (ODE’s)
• Euler methods (pressure-euler.m/euler.m, pressure-meuler.m/meuler.m)
• Runge-Kutta methods (pressure-rk2.m/rk2.m, pressure-rk4.m/rk4.m)
• systems of ODE’s (spring.m, euler2.m, rk22.m, spring-rk4.m, rk42.m)
• applications (decay.m, radioactivedecay.m, cosmos.m, cannonball-integration.m/rk22_2D.m)
Misc. scripts
• creating a movie: video.m
• symbolic derivative: symbolicderivative.m
Declaration of Accessibility