Fixed python calculations, added gitignore

This commit is contained in:
2023-03-22 15:07:19 +04:00
parent bd8cd9e635
commit 95fa3c4f3f
11 changed files with 77 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
% Bessel beam
function b = bessel(r, w0, r_max)
ring_radius = 2.405; % radisu of the first ring of the besselj_0
ring_radius = 2.405; % radius of the first ring of the besselj_0
A = 2 * ring_radius / (w0 * r_max * exp(0.5)) * 2 * pi * integral(@(r) r.*besselj(0, ring_radius/w0 * r).^2, 0, r_max);
b = A * besselj(0, 2.405/w0 * r).^2;
b = A * besselj(0, ring_radius/w0 * r).^2;
end