Pensieve header: January 13: Textbook (EIWL) chapters 1-4, evaluated.

1. Starting Out: Elementary Arithmetic

2+2

1234+56784363489638498968932468923898958968934689

1230000000000000000004*567984672387468364893746897468

2 2

(2+2) 2

t=2/3 + 1/4

t// N

N[t]

N@t

?N

Pi

N[Pi]

N[Pi,1000]

N@π

π~N~50

π // N[#,50]&

(N[#,50]&)[2π]

2. Introducing Functions

Should have been: “introducing expressions”

Should have been

Plus[3,4]

Hold[1+1]

Hold[1+1] // FullForm

Plus[1,2,3]

Times[2,3]

Times[2,Plus[2,3]]

Max[2,7,3]

RandomInteger[100]

BesselK[π,3] // N

3. First Look at Lists

{1,2,3,4,a,b,c} // FullForm

ListPlot[{1,1,2,2,3,4,4}]

ListPlot[Sqrt[{1,2,3,4,5,6,7,8,9,10}]]

Range[10]

Range[20] // Sqrt

Range[20] // Sqrt // N

ListPlot[Range[20]]

ListPlot[Range[20,1,-1]]

Reverse[{1,2,3,4}]

ListPlot[Reverse[Range[10]]]

Join[{1,2,3},{4,5},{6,7}]

{apple,orange,π}~Join~{1,2,3}

ListPlot[Join[Range[20],Range[20],Range[30]]]

ListPlot[Join[Range[20],Reverse[Range[20]],Range[30]]]

4. Displaying Lists

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

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

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

PieChart[{1,3,5,4}]

NumberLinePlot[{1,7,11,25}]

// FullForm

()^2

a^2

(7^2)

(1001^7)

(Sqrt[49])

Column[{100,350,502,400}]

{PieChart[Range[3]],PieChart[Range[5]]}

{BarChart[{1,1,4,2}],BarChart[{5,1,1,0}],BarChart[{1,3,2,4}]}

% // Sqrt

(((a+b))^2)

(((a+b))^2) // Expand