Khatwani’s Method
Khatwani’s algorithm converts the rational driving-point impedance straight into the \(H_k,h_k\) continued fraction (Equation (65) of the J-fraction Route to the Cauer Ladder page). The scheme relies only on
The first \(2N\) Markov parameters (Maclaurin coefficients) of \(Z(s)\),
A fast polynomial inverse built by Newton doubling,
A triangular calculation table that yields \(H_i, h_i\).
Khatwani’s method requires arbitrary-precision floating-point arithmetic and for very large systems, precision limitations can become even more severe than in polynomial long division.
Prerequisites
Start from the rational form (same as Equation (63) earlier)
Markov parameters
Expand about \(s=\infty\) (equivalently \(t=1/s\to 0\)):
Write \(Z(t)\) explicitly by dividing numerator and denominator by \(\beta_N\) and reversing the order of coefficients
where the new coefficients are
The strategy to obtain the Markov parameters is to invert the denominator of (72) and multiply it with the numerator. In the following, an algorithm for polynomial inversion is described.
Polynomial inverse by Newton doubling
Let
We need \(Q(t)=P(t)^{-1}\) accurate up to degree \(2N\) so that \(Z(t)=Q(t)\,(\gamma_1 t+\dots+\gamma_N t^N)\) reproduces the first \(2N\) Markov parameters.
For any integer \(i\) we call \(Q_i(t)\) an \(i\)-degree inverse if
Set \(Q_1(t)=1\) . With
we obtain the doubling update
Iterate until the degree exceeds \(2N\); multiply \(Q_{2N}(t)\) with the numerator polynomial to read off the Markov parameters \(y_1,\,\dots,\,y_{2N}\) .
Triangular calculation table
Construct the matrix (only labelled entries shown)
initialise \(A_{1,1}=1\) , \(A_{2,j}=y_j\) ;
fill rows \(j = 1\ldots 2N\) with
(79)\[A_{i,j}=A_{i-2,j+2}-H_{i-2}\,A_{i-1,j+2}-h_{i-2}\,A_{i-1,j+1} .\]
Row by row the first two entries give
These \(H_i , h_i\) coefficients complete the H–h fraction (Equation (65)) . Convert to the J-fraction via Equation (66) and finally to the Cauer S-fraction with the recurrence (69) described in J-fraction Route to the Cauer Ladder .