From b60f09401a15721f626bcb7c852f68b82fe39c1c Mon Sep 17 00:00:00 2001 From: wukong Date: Sun, 3 May 2026 13:10:31 -0700 Subject: replaced sum[1-4].awk with serial and columnar versions; minor merge updates between fir_window scripts; --- fir_window_vonhann.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fir_window_vonhann.awk') diff --git a/fir_window_vonhann.awk b/fir_window_vonhann.awk index 3c831c7..d4b010e 100644 --- a/fir_window_vonhann.awk +++ b/fir_window_vonhann.awk @@ -1,6 +1,7 @@ #!/usr/bin/awk -f ### fir_window_vonhann.awk +# generate a vonHann raised cosine FIR window # https://en.wikipedia.org/wiki/Window_function provides a few values for the # 'a0' and 'a1' parameters of the raised cosine. @@ -20,7 +21,7 @@ BEGIN { # window interval goes from -M to M M = 0.5*(N - 1) - pi = 4*atan2(1,1) + pi = 4.0*atan2(1.0, 1.0) for (n=-M; n<=M; n++) { if (N > 1 && M > 0) { -- cgit v1.2.3