constant {weyl}R Documentation

The constant term

Description

The constant of a weyl object is the coefficient of the term with all zeros.

Usage

constant(x, drop = TRUE)
constant(x) <-  value

Arguments

x

Object of class weyl

drop

Boolean with default TRUE meaning to return the value of the coefficient, and FALSE meaning to return the corresponding Weyl object

value

Constant value to replace existing one

Value

Returns a numeric or weyl object

Note

The constant.weyl() function is somewhat awkward because it has to deal with the difficult case where the constant is zero and drop=FALSE.

Author(s)

Robin K. S. Hankin

Examples

(a <- rweyl()+700)
constant(a)
constant(a,drop=FALSE)

constant(a) <- 0
constant(a)
constant(a,drop=FALSE)

constant(a+66) == constant(a) + 66

[Package weyl version 0.0-4 Index]