FortranForm
Usage
• FortranForm[expr] 作为Fortran语言版本的 expr输出。
Notes
• 翻译标准算术函数和一定的控制结构。 • FortranForm 是一个包装,对输出产生影响,但不计算。 • 输出行的宽度必须通过对相关的输出流给出选项PageWidth -> n进行明确设置。 • SetOptions[$Output, PageWidth -> 72] 对标准Mathematica输出使用有 72 个字符的行宽度。 • 不产生任何声明。
Further Examples
The FortranForm is equivalent to the original quadratic.
In[1]:=
|
Out[1]//FortranForm=
|
In[2]:=
|
Out[2]=
|
|