rfalg | R Documentation |
Random elements of the free algebra, intended as quick
“get you going” examples of freealg
objects
rfalg(n=7, distinct=3, maxsize=4, include.negative=FALSE)
rfalgg(n=30, distinct=8, maxsize=7, include.negative=FALSE)
rfalggg(n=100, distinct=26, maxsize=30, include.negative=FALSE)
n |
Number of terms to generate |
distinct |
Number of distinct symbols to use |
maxsize |
Maximum number of symbols in any word |
include.negative |
Boolean, with default |
What you see is what you get, basically. A term such as
aaBaAbaC
will be simplified to aaaC
.
Functions rfalgg()
and rfalggg()
return successively more
complicated freealg
objects.
Robin K. S. Hankin
rfalg()
rfalg(include.negative=TRUE)^2
constant(rfalg())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.