Computational Homework Guidelines

Prof. Goodman

August 3, 2009


Many homework problems will ask you to write a computer program to implement a numerical method or solve a specific problem. Here are the rules you must follow:


Programming Language

You may use any language you want but it must be a programming language. Microsoft Excel is not a programming language, although Visual Basic is. Some good choices are Matlab, FORTRAN, C, C++, Java, or Python. If you want to be able to ask for my help in writing programs, you’ll have to use Matlab or FORTRAN.

As your professor, let me recommend that you use Matlab. It has the following features that make it ideal for learning numerical methods.

You can download a copy of Matlab from the NJIT software downloads page. A good but not perfect free replacement is called Octave.

 

Assignments

Follow the guidelines below. Failing to follow the guidelines will cause you to lose points.

Each programming assignment should contain three components:

  1. Code.
  2. Outputs. Essentially, these are lists of numbers, but beware: Raw lists of numbers are unacceptable! Your data should be presented as either:
  1. A short report.

A little more detail.

1 Code

You may write in whatever language you choose. Each problem should contain a complete listing of the code used to solve the problem, including any subroutines. Comments should be used to make the code readable. This listing is very important so that your experiment is reproducible and so that you know exactly what you did (and not just what you thought you did).

 

2 Outputs

 

3 Report

It is never enough simply to show your results—there must be some explanation of what the numbers, and their associated errors, mean. For example:

It is very important that you “talk” the reader through this part, because otherwise it may just be a jumble of unintelligible numbers and/or graphs.