13.07.2015 Views

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

Mathematica Tutorial: Notebooks And Documents - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52 <strong>Notebooks</strong> and <strong>Documents</strong>TeXForm yields output suitable for export to TeX.In[9]:=TeXForm@x^2 + Sqrt@yDDOut[9]//TeXForm= x^2+\sqrt{y}MathMLForm yields output in MathML.In[10]:=MathMLForm@x^2 + Sqrt@yDDOut[10]//MathMLForm=x2+yIn[11]:=CForm yields output that can be included in a C program. Macros for objects like Power areincluded in the header file mdefs.h.CForm@x^2 + Sqrt@yDDOut[11]//CForm= Power(x,2) + Sqrt(y)FortranForm yields output suitable for export to Fortran.In[12]:=FortranForm@x^2 + Sqrt@yDDOut[12]//FortranForm=x**2 + Sqrt(y)TraditionalForm@exprDTeXForm@exprDMathMLForm@exprDCForm@exprDFortranForm@exprDtraditional mathematical notationoutput suitable for export to T E Xoutput suitable for use with MathML on the weboutput suitable for export to Coutput suitable for export to FortranOutput forms not normally used for <strong>Mathematica</strong> input."Low-Level Input and Output Rules" discusses how you can create your own output forms. Youshould realize however that in communicating with external programs it is often better to useMathLink to send expressions directly than to generate a textual representation for these expressions.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!