Pluto feature test

As a first homework, please test the installation of julia and Pluto on your computer. This notebook tests Pluto, the PlutoUI package and the PyPlot package which is a wrapper around the matplotlib package of Python. PyPlot will be the graphics package we mostly will rely upon in the course.

6.7 μs

As explained in vl03, activate a Julia environment in a temporary directory. This allows to use the notebook with only Julia and Pluto installed: It is possible to shift this cell to an Appendix at the end of the notebook, so that it is out of the eyes of the students.

5.3 μs
20.1 s

Create a linear range with n points in the interval (a,b)):

3.4 μs
n
1000
2 μs
a
0.0
1.7 μs
b
10
1.7 μs
x
1000-element LinRange{Float64}:
 0.0,0.01001,0.02002,0.03003,0.04004,0.0500501,…,9.95996,9.96997,9.97998,9.98999,10.0
11.1 ms

Move the slider in order to change the periond of the sine function in the plot below. Also, feel free to change the values of a,b,n in order to see how the graphic reacts.

3.1 μs
86.6 ms
y
122 ms

For plotting with PyPlot, we need to create a figure handle, fill it with the plot and return it as the return value of a Pluto cell.

6.4 μs
testplot (generic function with 1 method)
47.2 μs
37.5 ms