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