From f960e527c09a0f2c3dc542a0486db304d1e0b6e6 Mon Sep 17 00:00:00 2001 From: Charlotte Bond <czb@star.sr.bham.ac.uk> Date: Wed, 6 Nov 2013 16:55:34 +0000 Subject: [PATCH] correcting header --- src/new/optical_tools/FT_FP_cavity_power.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/new/optical_tools/FT_FP_cavity_power.m b/src/new/optical_tools/FT_FP_cavity_power.m index b70ba83..2a9176c 100644 --- a/src/new/optical_tools/FT_FP_cavity_power.m +++ b/src/new/optical_tools/FT_FP_cavity_power.m @@ -1,5 +1,5 @@ %-------------------------------------------------------------------------- -% function [Lrt] = FT_FP_cavity_power(Pin,Lrt,lambda,L,T1,R1,R2) +% function [Ploss,P0] = FT_FP_cavity_power(Pin,Lrt,lambda,L,T1,R1,R2) % % A function for Matlab which calculates the power circulating in a lossy % Fabry-Perot cavity. N.B. the circulating power is calculated just after @@ -32,7 +32,7 @@ function [Ploss,P0] = FT_FP_cavity_power(Pin,Lrt,lambda,L,T1,R1,R2) P0 = Pin * T1/(1+R1*R2-2*r1*r2); % Calculate power in lossy cavity - Ploss = P0/(1+Lrt/T1)^2; + Ploss = P0./(1+Lrt/T1).^2; end -- GitLab