abelianize: Abelianize a 'freealg' object

abelianizeR Documentation

Abelianize a freealg object

Description

Function abelianize() returns a freealg object that is equivalent to its argument under assumption of Abelianness. The symbols are placed in alphabetical order.

Usage

abelianize(x)

Arguments

x

A freealg object

Details

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

Value

Returns an object of class freealg.

Note

There is a very similar function in the freegroup package. However, the frab package is the best way to work with the free Abelian group.

Author(s)

Robin K. S. Hankin

Examples


abelianize(as.freealg("ba + 2abbba + 3abAB"))

abelianize(.[rfalg(),rfalg()])


RobinHankin/freealg documentation built on Dec. 24, 2024, 3:16 a.m.