backwards: Write free objects backwards

backwardsR Documentation

Write free objects backwards

Description

Write free objects in reverse order

Usage

backwards(x)

Arguments

x

Object of class free

Note

For each element of a free object, function backwards() writes the symbols in reverse order. It is distinct from rev(), see examples.

Function backwards is an involution: it is its own inverse.

Author(s)

Robin K. S. Hankin

Examples

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

RobinHankin/freegroup documentation built on April 12, 2025, 11:46 p.m.