Forward Mode Trigonometric and Hyperbolic Sine and Cosine
Syntax inline void ForTypeSinCos(size_t d, Base *s, Base *c, const Base *x)
Description
Computes the d order Taylor coefficient for S
and C
where are given by
Type
S
C
Trig
\sin [ X(t) ]
\cos [ X(t) ]
Hyp
\sinh[ X(t) ]
\cosh [ X(t) ]
x
The vector x has length d+1
and contains the
d-th order Taylor coefficient matrix for X.
s
The vector s has length d+1
.
On input it contains the
d-1-th order Taylor coefficient matrix for S.
On output it contains the
d-th order Taylor coefficient matrix for S; i.e.,
s[d] is set equal to the d-th Taylor coefficient for
the function S
.
c
The vector c has length d+1
.
On input it contains the
d-1-th order Taylor coefficient matrix for C.
On output it contains the
d-th order Taylor coefficient matrix for C; i.e.,
c[d] is set equal to the d-th Taylor coefficient for
the function C
.
Input File: cppad/local/sin_cos.hpp