FX-instructions

FX-instructions - Final Exam Monte Carlo Integration Margot...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Final Exam Monte Carlo Integration Margot Gerritsen Shela Aboud Emmet Caulfield March 6, 2010 1 1 Introduction In this final assessment, you will again write a program from scratch, as you did in Homework #7 . Your task is to write a program that uses Monte Carlo integration to estimate the volume of a unit n-ball of dimension given on the command-line between 1 and 10 inclusive. Exactly how you do it, while important, is your own choice provided that it meets certain specifications. You will use svn to interact with your personal Subversion repository, as used from Homework #2 onward and, again, with the structure prescribed in Home- work #2 , but this time, you will have to create this structure yourself there is no starting point code in the homeworks repository on cees-svn . This is an individual assessment. You may not collaborate or consult with any person other than the instructors and teaching assistants for ENERGY-211/CME-211. 2 Marking In outline: 40 marks for perfect functionality. 17 marks for your design and implementation quality. 17 marks for code readability and commenting. 16 marks for following prescriptions and avoiding proscriptions vis-`a-vis Subversion use, structure, make , etc. 10 for the Challenge. 3 Instructions Read every word of this entire document right through closely before you do anything else. Absolutely do not skim. 3.1 Directory Structure and Import First, create the directory structure and import it into your personal repos- itory at http://cees-svn.stanford.edu/ your-sunet-id use the structure prescribed in HW2, just as you should have done in the homeworks. After the import operations, the trunk for the final should be at http://cees-svn.stanford.edu/ your-sunet-id /FX/trunk this is what we will collect from cees-svn at the deadline and is the entire basis for grading you do not have to submit anything via Coursework . If you cannot svn checkout your work from exactly this URL, then neither can we. If we cant, you automatically lose 20% per calendar day (or part thereof) for late submission, so make absolutely certain that you can checkout your submission from that URL before the deadline. Make certain that your submission compiles and works the same on corn and myth some programming errors can manifest differently on different machines with different compiler versions, while (relatively) bug-free code tends to work the same everywhere. 3.2 The Task You will write a program that uses the counting method of Monte Carlo inte- gration to estimate the volume of a unit n-ball centered on the origin, to be invoked like (for n = 4, for example): $ ./nballv 4 It should handle dimensions from 110....
View Full Document

Page1 / 12

FX-instructions - Final Exam Monte Carlo Integration Margot...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online