34#include "implicit_f.inc"
39 . dt,freq,x2,x1,x,fx2,fx1
46 . dt2,wd,wa,wa2,a0,a1,a2,b1,b2,c1
61 wd = sqr2*pi*freq*5.0/3.0
62 wa = sin(wd*dt2) / cos(wd*dt2)
64 c1 = one + sqr2*wa + wa2
68 b1 = -two*(wa2 - one) / c1
69 b2 = (-one + sqr2*wa - wa2) / c1
70 fx = a0*x + a1*x1 + a2*x2 + b1*fx1 + b2*fx2
subroutine butterworth(dt, freq, x2, x1, x, fx2, fx1, fx)