In [1]:
using Plots
pyplot()


Out[1]:
Plots.PyPlotBackend()

In [2]:
f(x) = 3x - 4


Out[2]:
f (generic function with 1 method)

In [3]:
f(10)


Out[3]:
26

In [4]:
plot(f, xlims=(-5, 5))


Out[4]:

In [5]:
g(x) = (x + 2) * (x - 2)


Out[5]:
g (generic function with 1 method)

In [6]:
g(5)


Out[6]:
21

In [7]:
plot(g, xlims=(-4, 4))


Out[7]:

In [8]:
h₁(x) = (25 - x^2)
h₂(x) = -√(25 - x^2)


Out[8]:
h₂ (generic function with 1 method)

In [9]:
h₁(3), h₂(3)


Out[9]:
(4.0, -4.0)

In [10]:
plot([h₁, h₂], xlims=(-6, 6))


Out[10]:

In [11]:
plot(x -> 2x)


Out[11]:

In [12]:
plot(x -> x^3)


Out[12]:

In [13]:
plot(sin)


Out[13]: