Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Input and Output / Format Types /

FortranForm

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

FilledSmallSquare Standard arithmetic functions and certain control structures are translated.

FilledSmallSquare FortranForm acts as a "wrapper", which affects printing, but not evaluation.

FilledSmallSquare The width of output lines must be set explicitly by giving the option PageWidth -> n for the relevant output stream.

FilledSmallSquare SetOptions[$Output, PageWidth -> 72] uses a line width of 72 characters for standard Mathematica output.

FilledSmallSquare No declarations are generated.

FilledSmallSquare See Section 1.11.8 and Section 2.9.1.

FilledSmallSquare See also: CForm, Compile.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.