inverse: Inverses

inverseR Documentation

Inverses

Description

Multiplicative inverses of symbols in the free algebra

Usage

all_pos(x)
keep_pos(x)

Arguments

x

Freealg object

Details

Function all_pos() tests for its argument having only positive powers (that is, no inverse symbols present); function keep_pos() discards any term with a negative power.

At various points in the package, it is assumed that upper-case letters are the multiplicative inverses of the lower-case equivalents; so for example as.freealg("aA") and as.freealg("aBcCbA") evaluate to one. This can be confusing with the default print method.

Even though individual symbols have multiplicative inverses, a general element of the free algebra will not have a multiplicative inverse. For example, 1+x does not have an inverse. The free algebra is not a division algebra, in general.

Author(s)

Robin K. S. Hankin

Examples


all_pos(rfalg(include.negative = TRUE))
all_pos(rfalg(include.negative = FALSE))


as.freealg("1+xaX")^5




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