From c813d4fbb6ae49f46527e41709e7baf420c0ac16 Mon Sep 17 00:00:00 2001 From: Ameya Chawla <88154798+ameyachawlaggsipu@users.noreply.github.com> Date: Mon, 18 Oct 2021 01:55:36 +0530 Subject: [PATCH] Update fast_fourier_transform.cpp --- numerical_methods/fast_fourier_transform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numerical_methods/fast_fourier_transform.cpp b/numerical_methods/fast_fourier_transform.cpp index 84d654ce5..448bc943a 100644 --- a/numerical_methods/fast_fourier_transform.cpp +++ b/numerical_methods/fast_fourier_transform.cpp @@ -93,13 +93,13 @@ static void test() { for(uint8_t i=0;ireal()<0.000000000001 ) and (r1[i].imag()-o1->imag()<0.000000000001 ));/// Comparing for both real and imaginary values for test case 1 + assert((r1[i].real()-o1->real()<0.000000000001 ) && (r1[i].imag()-o1->imag()<0.000000000001 ));/// Comparing for both real and imaginary values for test case 1 o1++; } for(uint8_t i=0;ireal()<0.000000000001 )and ( r2[i].imag()-o2->imag()<0.000000000001 ));/// Comparing for both real and imaginary values for test case 2 + assert((r2[i].real()-o2->real()<0.000000000001 ) && ( r2[i].imag()-o2->imag()<0.000000000001 ));/// Comparing for both real and imaginary values for test case 2 o2++; }