Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tangent line.

using CairoMakie

The curve

f = x -> 3 / (x-2)
#2 (generic function with 1 method)
fig = Figure()
ax = Axis(fig[1, 1],
    title = "Fig 4.22",
    xlabel = "Reaction rate",
    ylabel = "Inhibitor concentration"
)
lines!(ax, 2.2..8.0, f, label="Curve")
lines!(ax, 2.7..5.3, x -> -3 / (4 - 2)^2 * (x - 4) + f(4), label="Tangent line")
limits!(ax, 2, 6, 0, 5)
axislegend(ax)
fig
Figure()

This notebook was generated using Literate.jl.