summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-11-22 15:36:48 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2020-09-21 16:33:21 -0400
commitff4273f0b340d72ee84394f86dd5681d4387e8d5 (patch)
tree2413fec98db3831b8b6a0642c3041473fcaa2a7d
parent3e2b545bdd35344dd545c9b4f5f67d84697d9eec (diff)
downloadmulti_mode_eit-ff4273f0b340d72ee84394f86dd5681d4387e8d5.tar.gz
multi_mode_eit-ff4273f0b340d72ee84394f86dd5681d4387e8d5.zip
one more fix of absorption calculations
-rw-r--r--faraday_and_psr/pp_tasks.m4
-rw-r--r--squeezing_filter/pp_tasks.m4
2 files changed, 4 insertions, 4 deletions
diff --git a/faraday_and_psr/pp_tasks.m b/faraday_and_psr/pp_tasks.m
index 0221897..de89a5e 100644
--- a/faraday_and_psr/pp_tasks.m
+++ b/faraday_and_psr/pp_tasks.m
@@ -20,8 +20,8 @@ for i=1:Nsteps
Ep.right(i)=d.E_field_pos_freq.right;
endfor
-Ep_out.left = exp(sqrt(1+1i*xi_left)) .*Ep.left;
-Ep_out.right = exp(sqrt(1+1i*xi_right)) .*Ep.right;
+Ep_out.left = exp(1i*sqrt(1+xi_left)) .*Ep.left;
+Ep_out.right = exp(1i*sqrt(1+xi_right)) .*Ep.right;
Ep_out.x= (Ep_out.left + Ep_out.right)/sqrt(2);
diff --git a/squeezing_filter/pp_tasks.m b/squeezing_filter/pp_tasks.m
index c99b950..729117c 100644
--- a/squeezing_filter/pp_tasks.m
+++ b/squeezing_filter/pp_tasks.m
@@ -24,8 +24,8 @@ endfor
xi_x=(xi_right+xi_left)/sqrt(2);
xi_y=(1i*xi_right-1i*xi_left)/sqrt(2);
-Ep_out.left = exp(sqrt(1+1i*xi_left)) .*Ep.left;
-Ep_out.right = exp(sqrt(1+1i*xi_right)) .*Ep.right;
+Ep_out.left = exp(1i*sqrt(1+xi_left)) .*Ep.left;
+Ep_out.right = exp(1i*sqrt(1+xi_right)) .*Ep.right;
Ep_out.x= (Ep_out.left + Ep_out.right)/sqrt(2);
Ep_out.y= 1i*(Ep_out.left - Ep_out.right)/sqrt(2);