Last chance! 50% off unlimited learning
Sale ends in
Accessor methods for free algebra objects
words(x)
coeffs(x,drop=TRUE)
coeffs(x) <- value
Object of class freealg
Numeric vector of length 1
Boolean, with default TRUE
meaning to drop the
disord
attribute, as per disordR::drop()
and
FALSE
meaning to consistently return a disord
object
irregardless
Robin K. S. Hankin
Access or set the different parts of a freealg
object. The
constant term is technically a coefficient but is documented under
constant.Rd
.
“Pure” extraction and replacement (as in a[i]
and
a[i] <- value
is implemented exprimentally. The code for
extraction is cute but not particularly efficient.
constant
a <- rfalg()
a
coeffs(a)
words(a) # NB: hash is identical to that of coeffs(a)
coeffs(a) <- 7 # replacement methods work
a
coeffs(a) #
Run the code above in your browser using DataLab