Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

FortranForm

Usage

FortranForm[expr] prints as a Fortran language version of expr.


Notes

• Standard arithmetic functions and certain control structures are translated.
FortranForm acts as a "wrapper", which affects printing, but not evaluation.
• The width of output lines must be set explicitly by giving the option PageWidth -> n for the relevant output stream.
SetOptions[$Output, PageWidth -> 72] uses a line width of 72 characters for standard Mathematica output.
• No declarations are generated.
• See also: CForm, Compile.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: