Prev Next RevAcosOp

Reverse Mode Acos Function

Syntax
inline void RevAcosOp(size_t d,
     const 
Base *z, const Base *b, const Base *x,
      
Base *pzBase *pbBase *px)

Description
We are given the partial derivatives for a function  G(z, b, x) and we wish to compute the partial derivatives for the function  \[
     H(x) = G [ Z(x) , B(x) , x ]
\] 
where  Z(x) and  B(x) are defined as the d-th order Taylor coefficient row vector for  \arccos(x) and  1 + x * x as a function of the corresponding row vector for X; i.e.,  \[
\begin{array}{rcl}
     Z & = & \arccos(X) \\
     B & = & 1 + X * X
\end{array}
\]
Note that Z and  B have been used both the original functions and for the corresponding mapping of Taylor coefficients.

x
The vector x has length  d+1 and contains the d-th order Taylor coefficient row vector for X.

z
The vector z has length  d+1 and contains d-th order Taylor coefficient row vector for z.

b
The vector b has length  d+1 and contains d-th order Taylor coefficient row vector for B.

On Input

px
The vector px has length  d+1 and px[j] contains the partial for G with respect to the j-th order Taylor coefficient for X.

pz
The vector pz has length  d+1 and pz[j] contains the partial for G with respect to the j-th order Taylor coefficient for Z.

pb
The vector pb has length  d+1 and pb[j] contains the partial for G with respect to the j-th order Taylor coefficient for B.

On Output

px
The vector px has length  d+1 and px[j] contains the partial for H with respect to the j-th order Taylor coefficient for X.

pz
The vector ps has length  d+1 and its contents are no longer specified; i.e., it has been used for work space.

pb
The vector pb has length  d+1 and its contents are no longer specified; i.e., it has been used for work space.
Input File: cppad/local/acos_op.hpp