Summary: Math 104A, Fall 2011
Introduction to Numerical Analysis
Guidelines for Programming Assignments
Instructor: Jingrun Chen.
Office: South Hall, 6705.
As we advance in the course, the assignments become more computationally oriented. Part of
the objectives of this course will be to develop adequate programming style and techniques. As
important as these will be the presentation of numerical results in a manner that is clear and
Your programs should be written with the reader in mind. This reader might be your professor, your
boss, or it might even be you, two months after you wrote it. For this reason, your program should
be well documented, and should be written with a good programming style. The general principle
is that whoever reads your code should not have to go through all the computer instructions in
order to know what the program does. This comes from practice, but there are several general
The variables you use should have names that hint at what the values represent. For example,
use names as length, height, and VolumeOfSphere, as opposed to y, yy, and yyy.