summaryrefslogtreecommitdiff
path: root/faraday_and_psr
diff options
context:
space:
mode:
Diffstat (limited to 'faraday_and_psr')
-rw-r--r--faraday_and_psr/pp_tasks.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/faraday_and_psr/pp_tasks.m b/faraday_and_psr/pp_tasks.m
index a3919ba..0221897 100644
--- a/faraday_and_psr/pp_tasks.m
+++ b/faraday_and_psr/pp_tasks.m
@@ -20,9 +20,9 @@ for i=1:Nsteps
Ep.right(i)=d.E_field_pos_freq.right;
endfor
-Ep_out.linear=(1-xi_linear).*Ep.linear;
-Ep_out.left=(1-xi_left).*Ep.left;
-Ep_out.right=(1-xi_right).*Ep.right;
+Ep_out.left = exp(sqrt(1+1i*xi_left)) .*Ep.left;
+Ep_out.right = exp(sqrt(1+1i*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);