Answer

The problem is that ``I'' is an INTEGER, but it is being passed as the first argument to ``SROOT,'' which expects a REAL. Remember---this is one place where Fortran doesn't detect the error. If you are in the habit of checking your programs before running them, you probably found this problem easily.

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu