From ff4273f0b340d72ee84394f86dd5681d4387e8d5 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 22 Nov 2011 15:36:48 -0500 Subject: one more fix of absorption calculations --- faraday_and_psr/pp_tasks.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'faraday_and_psr/pp_tasks.m') 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); -- cgit v1.2.3