This is the course web page for MAS212 (Scientific Computing and Simulation) which will be updated as the module progresses in Semester 1, 2015. For official course information, including timetabling, please consult the list of current modules.
MAS212 is a 10credit, Level 2, firstsemester module which covers various techniques in scientific computing, and their implementation in Python. The course is intended to follow on from MAS115 Mathematical Investigation Skills
In this course we will use IPython notebooks to combine code, text, plots and media. To view a notebook, click on the link on the left. (Alternatively, copyandpaste the notebook's URL in to the box at nbviewer.ipython.org).
To interact and modify the notebook, rightclick on the link on the right (.ipynb) and download to your ipython notebook directory.
Title  Description  notebook 

Curve_Fit_Example  Shows how to (a) generate a data set with simulated noise; (b) save and then reload the data; (c) fit the data to a simple model using scipy.optimize.curve_fit().  .ipynb 
ODE_Example  Shows how to (a) solve a firstorder singlevariable ODE using scipy.integrate.odeint, and plot; (b) solve a secondorder equation by writing as a pair of firstorder equations; (c) solve predatorprey equations.  .ipynb 
Media_Example  Shows how to load and interact with various media: data, images, web pages, YouTube videos and maps.  .ipynb 
Fern  The Barnsley Fern: an image of a fern with selfsimilar (fractal) properties, generated by iterating certain affine transformations.  .ipynb 
A short video here shows how to take the test on the managed desktop machines.
Description  Links  Due 

(2015) Class Test with answers  .ipynb .html Marker's notes   
(2014) Class Test  .ipynb .html   
(2014) Class Test with answers  .ipynb .html   
(Mock) Class Test  .ipynb .html   
(Mock) Class Test with answers  .ipynb .html   
To attempt a test, right click on ".ipynb" link, save the file in your notebooks directory, and then open the notebook. To view a test, left click on the ".html" link. Completed tests will be submitted here.
#  Title  Summary  Due  Feedback 

1  Wordsearch  Use Python to find hidden words in the rows, columns or diagonals of a grid of letters.  Mon 19th Oct (23:59pm). 
Example code Feedback points 
2  The van der Pol oscillator  Investigating the behaviour of a nonlinear second order differential equation  Mon 23rd Nov (23:59pm) 
Report (.pdf) Source (.tex) Code (.ipynb) 
3  Numerical methods for ODEs  Investigating accuracy, stability and stiffness.  Fri 4th Dec (23:59pm)  
4  Video Project  Key documents:
Other:

Mon 14th Dec (Video) Fri 18th Dec (Report) 