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 to is :

In[67]:=
Click for copyable input
Out[67]=

While correct, this does not look like traditional mathematics. Select the cell group, then choose the menu item Cell Convert To TraditionalForm:

In[959]:=
Click for copyable input
Out[959]=

Alternatively, if you only want to format the answer, apply TraditionalForm:

In[68]:=
Click for copyable input
Out[68]//TraditionalForm=
    

InputForm and StandardForm work in reverse.

Use InputForm to find out how to type an expression into Mathematica:

In[70]:=
Click for copyable input
Out[70]//InputForm=

StandardForm is more compact than InputForm and is unambiguous to Mathematica:

In[71]:=
Click for copyable input
Out[71]//StandardForm=

TraditionalForm is sometimes ambiguous; in this case, Mathematica treats first as a number and then as a function:

In[72]:=
Click for copyable input
Out[72]//StandardForm=
New to Mathematica? Find your learning path »
Have a question? Ask support »