You must broadcast the function f over x since x is a vector and f only works for scalar x.
Try this
x = LinRange(1:0.1:3)
plot(x,f.(x))
You must broadcast the function f over x since x is a vector and f only works for scalar x.
Try this
x = LinRange(1:0.1:3)
plot(x,f.(x))