DOCUMENTATION CENTER SEARCH
Mathematica
>
Display of Numbers
>
Built-in
Mathematica
Symbol
Generating C and Fortran Expressions
Forms of Input and Output
Tutorials »
|
FortranForm
Compile
See Also »
|
C/C++ Language Interface
Display of Numbers
Numerical Evaluation & Precision
More About »
CForm
CForm
[
expr
]
prints as a C language version of
expr
.
MORE INFORMATION
Standard arithmetic functions and certain control structures are translated.
No declarations are generated.
CForm
acts as a "wrapper", which affects printing, but not evaluation.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
A C language version of a polynomial:
In[1]:=
Out[1]//CForm=
A mixed numeric and symbolic expression:
In[2]:=
Out[2]//CForm=
Scope
(1)
Applications
(1)
Properties & Relations
(2)
Possible Issues
(1)
SEE ALSO
FortranForm
Compile
TUTORIALS
Generating C and Fortran Expressions
Forms of Input and Output
MORE ABOUT
C/C++ Language Interface
Display of Numbers
Numerical Evaluation & Precision
New in 1
© 2008 Wolfram Research, Inc.