freegroup (version 1.1-0)

abelianize: Abelianization of free group elements

Description

Return the result of modifying a free group element under the assumption of Abelianness

Usage

abelianize(x)

Arguments

x

An object of class free

Details

Abelianizing a free group element means that the symbols can commute past one another. Abelianization is vectorized.

Examples

Run this code
# NOT RUN {
x <- rfree(10,20,20)
abelianize(x)

p <- free(rbind(rep(1:5,4),rep(1:4,5)))
abelianize(p)
# }

Run the code above in your browser using DataLab