FORTRAN 90: Functions, Modules, and Subroutines (pdf format)
FORTRAN 90: Functions, Modules, and Subroutines (pdf format)
FORTRAN 90: Functions, Modules, and Subroutines (pdf format)
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
FUNCTION statement<br />
• FUNCTION function-name (formal-argument list)<br />
OR<br />
• type-identifier FUNCTION function-name (formal-argument list)<br />
• Function-name: any legal Fortran identifier.<br />
• Formal-argument list: identifier or a list of identifiers<br />
separated by commas<br />
– Formal or dummy arguments<br />
– Pass in<strong>format</strong>ion to the function sub-program<br />
• type-identifier: name of a type (REAL, INTEGER, etc.)