funcs/func_resonance.c
static void prewarp(
double *a0, double *a1, double *a2,
double fc, double fs)
{
	double wp, pi;

	pi = 4.0 * atan(1.0);
	wp = 2.0 * fs * tan(pi * fc / fs);

	*a2 = (*a2) / (wp * wp);
	*a1 = (*a1) / wp;
}
/*
* ----------------------------------------------------------
* Pre-warp the coefficients of a numerator or denominator.
* Note that a0 is assumed to be 1, so there is no wrapping
* of it.
* ----------------------------------------------------------
*/
Pre-warp the coefficients of a numerator or denominator.
Note that a0 is assumed to be 1, so there is no wrapping
of it.
Pre - warp the coefficients of a numerator or denominator . Note that a0 is assumed to be 1 so there is no wrapping of it .
static void prewarp(
double *a0, double *a1, double *a2,
double fc, double fs)
{
	double wp, pi;
	pi = 4.0 * atan(1.0);
	wp = 2.0 * fs * tan(pi * fc / fs);
	*a2 = (*a2) / (wp * wp);
	*a1 = (*a1) / wp;
}
static void prewarp ( double * a0 , double * a1 , double * a2 , double fc , double fs ) { double wp , pi ; pi = 4.0 * atan ( 1.0 ) ; wp = 2.0 * fs * tan ( pi * fc / fs ) ; * a2 = ( * a2 ) / ( wp * wp ) ; * a1 = ( * a1 ) / wp ; }
Pre-warp the coefficients of a numerator or denominator.
Pre - warp the coefficients of a numerator or denominator .