\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
tan_reverse¶
View page sourceTangent and Hyperbolic Tangent Reverse Mode Theory¶
Notation¶
We use the reverse theory standard math function definition for the functions \(H\) and \(G\). In addition, we use the forward mode notation in tan_forward for \(X(t)\), \(Y(t)\) and \(Z(t)\).
Eliminating Y(t)¶
For \(j > 0\), the forward mode coefficients are given by
Fix \(j > 0\) and suppose that \(H\) is the same as \(G\) except that \(y^{(j-1)}\) is replaced as a function of the Taylor coefficients for \(Z(t)\). To be specific, for \(k = 0 , \ldots , j-1\),
Positive Orders Z(t)¶
For order \(j > 0\), suppose that \(H\) is the same as \(G\) except that \(z^{(j)}\) is expressed as a function of the coefficients for \(X(t)\), and the lower order Taylor coefficients for \(Y(t)\), \(Z(t)\).
For \(k = 1 , \ldots , j\), the partial of \(H\) with respect to \(x^{(k)}\) is given by
where \(\delta ( j - k )\) is one if \(j = k\) and zero otherwise. For \(k = 1 , \ldots , j\) The partial of \(H\) with respect to \(y^{j-k}\), is given by
Order Zero Z(t)¶
The order zero coefficients for the tangent and hyperbolic tangent are
Suppose that \(H\) is the same as \(G\) except that \(z^{(0)}\) is expressed as a function of the Taylor coefficients for \(X(t)\). In this case,