Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

freealg (version 1.1-8)

abelianize: 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)

Value

Returns an object of class freealg.

Arguments

x

A freealg object

Author

Robin K. S. Hankin

Details

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

Examples

Run this code

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

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

Run the code above in your browser using DataLab