Next: Standard Deviation
Up: Simple example of a
Previous: Simple example of a
Note INTENT is not essential as it may not have been covered in the
course so far.
PROGRAM Main
IMPLICIT NONE
PRINT*, Summy1(1.0,2.0)
PRINT*, Summy1(1.0,-1.0)
PRINT*, Summy1(0.0,0.0)
PRINT*, Summy1(1.0E54,9192652.0)
CONTAINS
REAL FUNCTON Summy1(x,y)
REAL, INTENT(IN) :: x, y
Summy1 = x+y
END FUNCTON Summy1
END PROGRAM Main
Next: Standard Deviation
Up: Simple example of a
Previous: Simple example of a
©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997Not for commercial use.