45

2+4

34^234/34!

34.^234/34!

a

a+a

3*x^2 - 3 x

Sin[3]

Sin[3.0]

Pi

N[Pi]

N[Sin[3]]

Sin[Pi]

Cos[2*Pi]

Sin[1/2]

Sin[a]

N[Sin[a]]

1/a

Sin[Pi/17]//N

N[Pi/3]
N@Pi/3
Pi/3//N

Sin[N[Pi]]

Sin[Pi]

Sin[0]

Sin[0 N[Pi]]

Sin[]

sin[Pi]

sin[]

sin[1,2,3]

{4,5,6,2,43,432423}

{4,5,6,2,43,,432423}

l={3,4,5,45.6, 6 I + 6,gg,g[h[j[7]]]}

Length[l]

Apply[Plus,l]

Apply[Plus,{3,4,5,45, 6 I + 6,gg,g[h[j[7]]]}]

?Apply

Plus@@l

Plus@{1,2,3,4,5}

Plus@@{1,2,3,4,5}

FullForm[{1,2,3,4,5}]

?FullForm

?*Form

?Full*

Exit[]

M={{1,2,3},{4,5,6},{7,8,9}}

M//MatrixForm

M//TableForm

M={{1,2,3},{4,5,6,10},{7,8,9}}//MatrixForm

{a,b,c}
{{a},{b},{c}}
{{a,b,c}}

Transpose[{{a,b,c}}]

Transpose[{a,b,c}]

123^1237;

{{},{}}

Assignments

(* this is a comment, it's not going to be evaluated *)

a = 4;                                 (* integer *) 
b = 5.5 + Sqrt[-4.4];(* complex number *) 
c = "element";               (* string *)
d = function[ 4 ];        (* function call *)  
e = Pi;                              (* symbol *)
f = {1,2};                     (* a list *)

?d

Clear[x,y,z,a,b,c,d,e,f]

?d

?x

x=a+3

?x

b=Pi/E

= is the assignment
:= is the delayed assignment

y=E b;
z:=E b;

{y,z}

b=E; {y,z}

?y

?z

z:=z Pi

3z