Solution

You can include comments inside Mathematica code by enclosing them between (* and *).

In[1]:=

(*1*)10Sin[10]

Out[1]=

10 Sin[10]

In[2]:=

(*2*)%/4

Out[2]=

(5 Sin[10])/2

In[3]:=

(*3*)% + 10

Out[3]=

10 + (5 Sin[10])/2

In[4]:=

(*4*)% * %

Out[4]=

(10 + (5 Sin[10])/2)^2

In[5]:=

(*5*)% + %%

Out[5]=

10 + (5 Sin[10])/2 + (10 + (5 Sin[10])/2)^2

The function N gives the numerical value of an expression

In[6]:=

%//N

Out[6]=

83.2886


Created by Mathematica  (April 10, 2007) Valid XHTML 1.1!