Learn R Programming

freegroup (version 1.2-0)

backwards: Write free objects backwards

Description

Write free objects in reverse order

Usage

backwards(x)

Arguments

x

Object of class free

Author

Robin K. S. Hankin

Examples

Run this code
abc(1:5)
backwards(abc(1:5))
rev(abc(1:5))

x <- rfree(10,5)
backwards(backwards(x)) == x  # involution
all(abelianize(x) == abelianize(backwards(x))) # should be TRUE

Run the code above in your browser using DataLab