// impulse response of an n-point moving average // #include #include int main( void) { int n = 3; double v = 1.0/n; for( int i = 0; i < n; ++i) printf("%g\n",v); return 0; } /* output: 0.333333 0.333333 0.333333 */ // to get frequency response, plot with args: | dft