Rn_Gauss-class {multIntTestFunc}R Documentation

An S4 class to represent the function exp(xx)\exp(-\vec{x}\cdot\vec{x}) on RnR^n

Description

Implementation of the function

f ⁣:Rn(0,),xf(x)=exp(xx)=exp(i=1nxi2),f \colon R^n \to (0,\infty),\, \vec{x} \mapsto f(\vec{x}) = \exp(-\vec{x}\cdot\vec{x}) = \exp(-\sum_{i=1}^n x_i^2),

where n{1,2,3,}n \in \{1,2,3,\ldots\} is the dimension of the integration domain Rn=×i=1nRR^n = \times_{i=1}^n R. In this case the integral is know to be

Rnf(x)dx=πn/2.\int_{R^n} f(\vec{x}) d\vec{x} = \pi^{n/2}.

Details

The instance needs to be created with one parameter representing nn.

Slots

dim

An integer that captures the dimension

Author(s)

Klaus Herrmann

Examples

n <- as.integer(3)
f <- new("Rn_Gauss",dim=n)

[Package multIntTestFunc version 0.2.0 Index]