as.function: Coerce a multipol to a function

as.function.multipolR Documentation

Coerce a multipol to a function

Description

Coerce a multipol to a function using environments

Usage

## S3 method for class 'multipol'
as.function(x, ...)

Arguments

x

A multipol

...

Further arguments, currently ignored

Author(s)

Robin K. S. Hankin

See Also

as.multipol

Examples

a <- as.multipol(array (1:12, c(2,3,2)))

f1 <- as.function(a)
f2 <- as.function(a*a)

x <- matrix(rnorm(15),ncol=3)

f1(x)^2 - f2(x)   #should be zero  [non-trivial!]

multipol documentation built on Aug. 21, 2023, 9:10 a.m.