Description Usage Arguments Details Value Author(s) References Examples

Since `polynom`

objects are represented as functions,
`as.function.polynom`

simply removes the `class`

attribute.
The function `as.function.polylist`

produces allows all
polynomials on the list to be evaluated simultaneously at the same
argument value.

1 2 3 4 | ```
## S3 method for class 'polynom'
as.function(x, variable = "x", ...)
## S3 method for class 'polylist'
as.function(x, ...)
``` |

`x` |
A |

`variable` |
A character string giving the name to be used for the
formal argument of the resulting function, (for |

`...` |
Not currently used. |

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.

An `R`

function implementing the evaluation.

Bill Venables

None

1 2 3 4 5 6 7 |

PolynomF documentation built on May 30, 2017, 7:20 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.