![]() |
Prev | Next |
yp = f.forward(p, xp)
p
-th order Taylor coefficient is its
p
-th order derivative divided by
p
factorial
and evaluated at @(@
t = 0
@)@; i.e.,
@[@
g^{(p)} (0) / p !
@]@
f
.
Note that
n
is the size of ax
and
m
is the size of ay
in to the constructor for
f
.
int p
and is non-negative.
It is the order of the Taylor coefficient being calculated.
If there was no call to forward
for this
f
,
the value of
p
must be zero.
Otherwise, it must be between zero and one greater that its
value for the previous call using this
f
.
After this call, the Taylor coefficients for orders zero though
p
,
and for every variable in the recording, will be stored in
f
.
p+1
.
f
is a d_fun
or a_fun
,
this argument has prototype
const vec_double& xp
const vec_a_double& xp
respectively and its size must be
n
.
It specifies the p
-th order Taylor coefficients for
X(t)
.
f
is a d_fun
or a_fun
,
the result has prototype
vec_double& yp
vec_a_double& yp
respectively and its size is
m
.
It is the p
-th order Taylor coefficients for @(@
Y(t)
@)@.