Semester assignment 2014

The semester assignments will consist of one computer exercise. Three problems are given and you should choose one of them. You are asked to write and execute computer programs in order to find the appropriate solutions to the posted physical problems. You will be asked to hand it your solution as a report written in LaTeX.

The computational language that we suggest using is called Python and is freely available. It is a powerful language, with a lot of libraries available for various tasks. Moreover, it is much more flexible than, for instance, Matlab, but easier to use than compilable languages like C, C++ and Fortran. An introduction to Python will be given before the first assignment. However, if you have not, or can not wait to see the use of Python in Science, I strongly recommend the nice following set of beginners tutorials recently presented at the EuroSciPy2010 conference. If you also want the test programs used here, please download the whole package from here. Also take a look at Python for Matlab Users Guide.

That being said, I would stress that you are free to use whatever programming language that you wish, Matlab included. The important point is that you should get exposed to the use of computers in solving scientific problems!

Your project will not be graded, but you have to pass it to be allowed to take the exam. In other words, the project is a compulsory activity of this class.

Problem sets

You should choose only one of the above problem sets!

Final report

  • The final (LaTeX) report for the projects is due on : Fri. Nov. 01, 2014.
  • It should contain sufficient details and results to fully explain what you are doing. Recall that if you are not explaining what you are doing, the grader can not give you credit!
  • In the report you do not have to review theory in the book. However, some of the central formula that you use it is still useful to include.
  • Instructions about how to submit your project will be announced later!

You are expected to submit your assignment in the following way:
  • By Fri. Nov. 01, 2014 mail your assignment to the teaching assistants following the rule:
    • David Kleiven (davidkleiven446_at_gmail.com) if you family name starts with a letter in the interval A-J
    • Jean-Michael Poudroux (jeanmichael.poudroux_at_gmail.com) if you family name starts with a letter in the interval K-Å
  • This mail should contain/have the format:
    • Subject : TFY4240 Assignment
    • Attachment : report (pdf-format) AND source code
    • Clearly state your full name on the first page of the report and in the email body (so we know who you are)


Python examples



Relevant links

We have collected some links for you here, if you want to learn more about Python and/or LaTeX.

Python in general: The NumPy (matlab-like arrays), SciPy (handy numerical functions) and Matplotlib (plotting) libraries: Linux, UNIX, and Mac OS X is best used from the terminal: MS windows users:
  • PythonXY (a good windows distribution; install the full version to get many useful libraries)
About the LaTeX document preparation system: Revision control systems