Learn R Programming

weyl (version 0.0-7)

dim: The dimension of a weyl object

Description

The dimension of a weyl algebra is the number of variables needed; it is half the spray::arity(). The dimension of a Weyl algebra generated by \(\left\lbrace x_1,x_2,\ldots,x_n,\partial_{x_1},\partial_{x_2},\ldots,\partial_{x_n}\right\rbrace\) is \(n\) (not \(2n\)).

Usage

# S3 method for weyl
dim(x)

Value

Integer

Arguments

x

Object of class weyl

Author

Robin K. S. Hankin

Examples

Run this code

(a <- rweyl())
dim(a)

Run the code above in your browser using DataLab