Learn R Programming

clifford (version 1.1-0)

print: Print clifford objects

Description

Print methods for Clifford algebra

Usage

# S3 method for clifford
print(x,...)
# S3 method for clifford
as.character(x,...)
catterm(a)

Arguments

x

Object of class clifford in the print method

...

Further arguments, currently ignored

a

Integer vector representing a term

Author

Robin K. S. Hankin

See Also

clifford

Examples

Run this code

a <- rclifff(9)
a   # default print method incomprehensible

options("separate" = TRUE)
a    # marginally better


options("separate" = FALSE)
options(basissep=",")
a    #  clearer; YMMV

options(basissep = NULL, maxdim=NULL)  # restore default

options("maxdim" = 3)
signature(3)
a <- clifford(list(0,c(1,2),c(1,3),c(2,3)),6:9)
a

options("clifford_print_special" = "quaternion")
a

options("maxdim" = NULL)
options("clifford_print_special" = NULL)
signature(Inf)

Run the code above in your browser using DataLab