########################################################### # "Style" comments for Homework 3 ########################################################### (1) Become familiar with the Fortran built-in (intrinsic) functions. See Appendix A of the SGI Fortran 77 Language Reference Manual available on-line via the Course Resources page. Note in particular that exp() is built-in. (2) Specify all real*8 constants to FULL real*8 precision. As a general rule, this means 16 significant digits. (3) DO NOT clutter standard output with non-machine-readable junk, i.e. use write(*,*) value rather than write(*,*) 'The value is ', value REMEMBER THE "UNIX PHILOSOPHY"---it should be as easy as possible to pipe the output of one program into the input of another (4) DO NOT clutter standard error with frivolous error messages such as write(0,*) 'OK, we are done ...' TAKE YOUR PROGRAMMING SERIOUSLY (5) Minimize use of division (SLOW compared to multiply). E.g. Use ahalf = 0.5d0 * a rather than ahalf = a / 2.0d0 and NEVER use ahalf = a / 2