From 6a9b4a312bd4736eea5f599ee7e6b97d45d5949d Mon Sep 17 00:00:00 2001 From: Ameya Chawla <88154798+ameyachawlaggsipu@users.noreply.github.com> Date: Thu, 21 Oct 2021 08:11:47 +0530 Subject: [PATCH] Update numerical_methods/fast_fourier_transform.cpp Co-authored-by: David Leal --- numerical_methods/fast_fourier_transform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/numerical_methods/fast_fourier_transform.cpp b/numerical_methods/fast_fourier_transform.cpp index a99a3f5fd..09cc5835c 100644 --- a/numerical_methods/fast_fourier_transform.cpp +++ b/numerical_methods/fast_fourier_transform.cpp @@ -36,8 +36,9 @@ std::complex *FastFourierTransform(std::complex *p, uint64_t n) { double pi = 2 * asin(1.0); /// Declaring value of pi - if (n == 1) + if (n == 1) { return p; /// Base Case To return + } std::complex om = std::complex( cos(2 * pi / n), sin(2 * pi / n)); /// Calculating value of omega