Analog transfer function
 Syntax Ha=analogtf(ANum, ADen, AGain, DFormat) Description Define an analog filter object. Where, the ANum and ADen  vectors are the Laplace transfer function coefficients in descending order. Examples A first order analog lowpass filter may be designed by an RC network:  Choosing R=100k and C=100nF, gives cut-off, \(w_c\) at 100rad/s or ≈ 15.9Hz. The analog transfer function may be simply implemented in FilterScript (output shown below) as:
 Choosing R=100k and C=100nF, gives cut-off, \(w_c\) at 100rad/s or ≈ 15.9Hz. The analog transfer function may be simply implemented in FilterScript (output shown below) as:
Main()
wc=100;  // 1/(R*C);
ANum={0,1};
ADen={1,wc};
AGain=wc;
Ha=analogtf(ANum,ADen,AGain,"symbolic");
 This analog filter object may be now transformed into a digital filter via the Bilinear or Match Z-transform methods. See the example script AnalogRCfilter.afs for more information.
 This analog filter object may be now transformed into a digital filter via the Bilinear or Match Z-transform methods. See the example script AnalogRCfilter.afs for more information. 
