Since polynom
objects are already stored as functions,
as.function.polynom
is rarely needed and may be replaced by
unclass
. An explicit call to as.function.polynom
,
however, will generate a slightly faster version of the function as an
unrooled loop, and does allow the user to specify a different name for
the formal argument to be used.
Since arithmetic on polynomials is provided, both of these
functions may be evaluated at a polynom
object as well as a
numeric argument.