Last-week Lab - Scientific-programming Pitfalls, Summary, Recommendations
Topics:
- Finish any remaining previous labs.
- Discussion of floating-point math on computers (see demo on higher precision)
- Summary of topics and methods.
- Recommendations for good programming style. (also see Fortran90 Best Pracrtices )
- Your future programming activities.
- Discussion of upcoming final exam.
- Reminder to do the online instructor evaluations.
Lecture Notes: . PDF Copy of Powerpoint Lectures for Last Week of Term .
Reading Assignment: Catch up on previous reading assignments. The final exam will cover mostly the readings from your course material pack:
- Course Pack section on Computer-language Evolution:
- Hayes, B., 2006: The semicolon wars. American Scientist, 94, 299-303.
- Levenz, E. 2012: History of programming languages. (a timeline chart)
.
- Course Pack section on Good Programming Practices:
- Section from: B.W. Kernighan and R. Pike, 1999: The Practice of Programming. Addison Wesley)
- Epilogue
- Appendix - Collected Rules
- Chapter 5 - Debugging (focus on main topics and methods, not on any one programming language)
- Section from: S.J. Chapman, 2008: Fortran 95/2003 for Scientists & Engineers, 3rd Ed. McGraw Hill.
- only the first 8 pages of Chapter 3 Program design and branching structures, which cover top-down design and flowcharting.
.
- Course Pack on Binary Calculations and Pitfalls:
- Press, Teukolsky, Vetterline, Flannery, 2007: Numerical Recipes in C, 2nd Ed.
- only pages 28 - 31 in Section 1.3 Error, Accuracy, and Stability, which covers binary numbers, numerical accuracy, and numerical errors.
- S.J. Chapman, 1998: Fortran 90/95 for Scientists & Engineers, 1st Ed. McGraw Hill.
- only the first 15 pages of Chapter 12 Intro to Numerical Methods, which covers round-off errors, truncation errors, and other in numerical-calculation errors.
- B. Hayes, 2009: The higher arithmetic. American Scientist, 97, 364-368.
Goal of Readings: To help you prepare for the written final exam.
Homework Assignment: (None, other than finish the readings in the Custom Course Materials.)
-end-