print: Print freealg objects

Description Usage Arguments Note Author(s) See Also Examples

Description

Print methods for free algebra objects

Usage

1
2
## S3 method for class 'freealg'
print(x,...)

Arguments

x

Object of class freealg in the print method

...

Further arguments, currently ignored

Note

The print method does not change the internal representation of a freealg object, which is a two-element list, the first of which is a list of integer vectors representing words, and the second is a numeric vector of coefficients.

The print method has special dispensation for length-zero freealg objects but these are not handled entirely consistently.

The print method is sensitive to the value of getOption("usecaret"), defaulting to “no”. The default is to use uppercase letters to represent multiplicative inverses, but if TRUE, inverses are indicated using “^-1”. This becomes cumbersome for powers above the first. For example, the default notation for aba^-2 is abAA but becomes aba^-1a^-1 if usecaret is TRUE.

Author(s)

Robin K. S. Hankin

See Also

freealg

Examples

1
2
3
4
5
6
7
8
rfalg()

x <- rfalg(inc=TRUE)
x                           # default
options("usecaret" = TRUE)  # use caret
x
options("usecaret" = FALSE) # back to the default
x

freealg documentation built on Nov. 19, 2021, 9:07 a.m.