From 192f8d40cabb1651246e809ffd5fe054c50373b6 Mon Sep 17 00:00:00 2001 From: RaghavGirgaonkar Date: Wed, 20 Dec 2023 09:41:04 +0530 Subject: [PATCH] Updated negative waveform --- OptimizedPSOCodes/waveform_tau_negative.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OptimizedPSOCodes/waveform_tau_negative.m b/OptimizedPSOCodes/waveform_tau_negative.m index db53603..dcfd32a 100644 --- a/OptimizedPSOCodes/waveform_tau_negative.m +++ b/OptimizedPSOCodes/waveform_tau_negative.m @@ -18,7 +18,7 @@ G = 6.6743*10^-11; %% Check for positive chirp-length and swap tau0 and tau1.5 values if yes -if abs(tau0) < abs(tau1p5) + M = (5/(32*fmin))*(tau1p5/(pi*pi*tau0))*(c^3/G); if tau0 < 0 && tau1p5 < 0 @@ -32,11 +32,12 @@ tau2 = -(5/(128*pi))*(1/fmin)*((G*M*pi*fmin/c^3)^(-1/3))*(1/n)*((3058673/1016064) + (5429*n/1008) + (617*n*n/144)); if tau0 - tau1p5 + tau1 + tau2 > 0 +% disp('In here'); temp = tau0; tau0 = tau1p5; tau1p5 = temp; end -end + %% Calculate Mass Terms from Tau0 and Tau1.5 M = (5/(32*fmin))*(tau1p5/(pi*pi*tau0))*(c^3/G);