Purpose
Determines the value of the power function
{\rm pow} (x, y) = x^y
for integer exponents
n
using multiplication and possibly division to compute the value.
The other CppAD pow
function may use logarithms and exponentiation
to compute derivatives of the same value
(which will not work if
x
is less than or equal zero).
Include
The file cppad/utility/pow_int.hpp
is included by cppad/cppad.hpp
but it can also be included separately with out the rest of
the CppAD routines.
Including this file defines
this version of the pow within the CppAD namespace.