此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)
Mathematica HowTo
How to | Change the Form of Input and Output
The user interface for Mathematica provides many options for formatting input and output.
The sum of from n=1 to n=infty is :
In[1]:=
Click for copyable input
Out[1]=
While correct, this does not look like traditional mathematics. Select the cell group, then choose the menu item Cell Convert To TraditionalForm:
In[2]:=
Click for copyable input
Out[2]=
Alternatively, if you want to automatically format the answer, apply TraditionalForm:
In[3]:=
Click for copyable input
Out[3]//TraditionalForm=
    
InputForm and StandardForm work in reverse.
Use InputForm to find out how to type an expression into Mathematica:
In[4]:=
Click for copyable input
Out[4]//InputForm=
StandardForm is more compact than InputForm and is unambiguous to Mathematica:
In[5]:=
Click for copyable input
Out[5]//StandardForm=
TraditionalForm is sometimes ambiguous; in this case Mathematica treats f first as a number and then as a function:
In[6]:=
Click for copyable input
Out[6]//StandardForm=