identity

0th

Percentile

The identity element

Create and test for the identity element

Usage
is.id(x)
id(n)
# S3 method for free
is.id(x)
Arguments
x

Object of class free

n

Strictly positive integer

Details

Function id() returns a vector of free objects, all of which are the identity element. Do not ask what happens if \(n=0\).

Function is.id() returns a Boolean indicating whether an element is the identity or not. The identity can also be generated using as.free(0).

Aliases
  • identity
  • id
  • is.id
  • is.identity
  • is.id.free
  • neutral
Examples
# NOT RUN {
id()
as.free(0)   # convenient R idiom for creating the identity

x <- rfree(10,3)
stopifnot(all(x == x + as.free(0)))
stopifnot(all(is.id(x-x)))

# }
Documentation reproduced from package freegroup, version 1.1-0, License: GPL-2

Community examples

Looks like there are no examples yet.