FA-91525 / Digital signal filters / Member archive
Frequency response reports magnitude with the power decibel factor · case 05
A gain of 2 is reported as 3.01 dB instead of 6.02 dB.
Case contract
Input [b, a, freqs]; coefficients and frequencies are numbers or rational strings, frequencies are fractions of Nyquist. For w = pi f evaluate H = B(e^{jw})/A(e^{jw}) with z^-k = e^{-jwk}; return per frequency [20 log10 |H| rounded to 4, phase in degrees rounded to 3], "pole" if |A| < 1e-12, "zero" if |H| < 1e-9.
Why this case matters
Magnitude and phase plots are how filters are verified; unit or sign slips misreport cutoff and delay.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: random response 9 | [[3.0103, 0.0], [-1.4581, 14.639], [3.0103, 0.0]] | [[6.0206, 0.0], [-2.9161, 14.639], [6.0206, 0.0]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗