In [1]:
using GSL
using PyPlot
function Plot(f, x)
fx=[f(xi) for xi in x]
plot(x, fx)
end
Out[1]:
In [2]:
rc("text", usetex=false)
In [3]:
fig = figure()
pl = fig[:add_subplot](111);
ax = Plot(0:0.01:10) do t
R = 5
return log((R*sf_bessel_jl(1,R*sqrt(t))/sqrt(t))^2)
end
pl[:set](title = "Fraunhofer scattering", xlabel="t", ylabel="log |A(t)|^{2}",)
Out[3]:
In [ ]: