Mathematica 9 is now available

FortranForm

Usage

FortranForm[expr] 作为Fortran语言版本的 expr输出。


Notes

• 翻译标准算术函数和一定的控制结构。
FortranForm 是一个包装,对输出产生影响,但不计算。
• 输出行的宽度必须通过对相关的输出流给出选项PageWidth -> n进行明确设置。
SetOptions[$Output, PageWidth -> 72] 对标准Mathematica输出使用有 72 个字符的行宽度。
• 不产生任何声明。
• 参见 Mathematica 全书: 1.11.8节 and 2.8.1节.
• 同时参见: CForm, Compile.
Further Examples

The FortranForm is equivalent to the original quadratic.

In[1]:=  

Out[1]//FortranForm=

In[2]:=  

Out[2]=



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.