|
|
||
|
|
| CForm[expr] | 将 expr 写为能在 C 程序中使用的格式 |
| FortranForm[expr] | 将 expr 写为能在 Fortran 中使用的格式 |
| Export[file,expr,"C"] | 写一个能计算 expr 的 C 函数 |
| In[1]:= |
| Out[1]= |
| In[2]:= |
Out[2]//FortranForm= | |
| In[3]:= |
Out[3]//CForm= | |
| In[4]:= |
| Out[4]= |
| Compile[x,expr] | 编译一个表达式为高效的内部代码 |
| Compile[x,expr,CompilationTarget->"C"] | 编译为 C 代码并链接回 Mathematica |