procedure FrequencyResponseS(const Num: TVec; const Den: TVec; const Frequencies: TVec; const Response: TVec; alpha: Double);
Analog (s-domain) complex frequency response of a rational transfer function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Num | TVec | |
| 2 | Den | TVec | |
| 3 | Frequencies | TVec | |
| 4 | Response | TVec | |
| 5 | alpha | Double | scalar |
Result: stored in self (calling object)
Evaluates the Laplace-domain transfer function with polynomial Num in the numerator and Den in the denominator at s = alpha + j omega for each angular frequency omega (rad/s) in Frequencies, returning the complex result in Response:
H(s) = Num(s)/Den(s), s = alpha + j omega
The polynomial coefficients are stored highest-power-first (descending), so Den =[1, 1] denotes s+1. Frequencies are typically log-spaced, with more points where the response varies rapidly, but any positive spacing is allowed. The optional alpha shifts the evaluation off the imaginary axis (default 0). Domain: Frequencies must be real (a complex Frequencies vector raises); an empty Frequencies returns an empty Response. A pole of Den hit exactly on the evaluation grid produces an infinite/NaN response entry rather than raising.