print: Print freealg objects

printR Documentation

Print freealg objects

Description

Print methods for free algebra objects

Usage

## 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.

Integers exceeding SHRT_MAX are reserved for infinitesimals, which are printed as “da”; see the note at deriv.Rd for details.

Author(s)

Robin K. S. Hankin

See Also

freealg,deriv

Examples


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 Aug. 28, 2022, 9:05 a.m.