Fig 2.04

Fig 2.04#

Exponential decay

using Plots
Plots.default(linewidth=2)
fig = plot(title= "Fig 2.4")
for k in 1:3
    plot!(fig, t -> 3 * exp(-k*t), 0., 5., label = "exp(-$(k)t)")
end

plot!(fig, xlim = (0, 5), ylim=(0, 3.2), xlabel="Time", ylabel="Concentration")
../_images/deb206bac09f683148d56495adfd7430ef8eabb4d2be9a0cc52a0e9a99a77eab.png

This notebook was generated using Literate.jl.