extern bool link_poly(
size_t size ,
size_t repeat ,
CppAD::vector<double> &a ,
CppAD::vector<double> &z ,
package, the corresponding return value for
sizeis the order of the polynomial (the number of coefficients in the polynomial).
repeatis the number of different argument values that the second derivative (or just the polynomial) will be computed at.
ais a vector with
sizeelements. The input value of its elements does not matter. The output value of its elements is the coefficients of the polynomial that is differentiated (
i-th element is coefficient of order
zis a vector with one element. The input value of the element does not matter. The output of its element is the polynomial argument value were the last second derivative (or polynomial value) was computed.
ddpis a vector with one element. The input value of its element does not matter. The output value of its element is the second derivative of the polynomial with respect to it's argument value.
double, the output value of the element of
ddpis the polynomial value (the second derivative is not computed).