Skip to contents

Random elements of the free antiassociative algebra, intended as quick “get you going” examples of aaa objects

Usage

raaa(n = 4, s = 3)
raaaa(n = 10, s = 30)

Arguments

n

Number of terms to generate

s

Number of symbols to use in the alphabet

Details

Function raaa() returns a random aaa object. Function raaaa() returns, by default, a more complicated aaa object.

Value

Returns an object of class aaa

Author

Robin K. S. Hankin

Examples

raaa()
#> free antiassociative algebra element:
#> +3c +2d +3a.d +2b.d +2d.a +4(a.c)d +3(c.c)c +4(d.d)d
raaaa()
#> free antiassociative algebra element:
#> +27a +8b +10c +16d +12e +9f +34g +7h +10i +20j +3a.b +4a.d +11a.g +9a.i +8c.e
#> +9c.f +4c.j +10d.c +8d.f +2e.a +1f.b +2f.j +6g.d +8g.f +12g.h +1h.c +11h.d
#> +6h.j +10i.b +9i.e +13i.g +1i.h +2j.e +6j.j +1(a.c)e +1(a.e)d +3(a.f)j +7(a.h)f
#> +1(b.a)h +9(c.d)b +9(c.f)c +4(c.g)a +3(c.j)i +8(d.b)e +8(d.e)a +4(d.e)c
#> +7(d.h)i +4(e.b)c +5(f.a)a +9(f.a)c +9(f.e)d +5(f.h)j +10(f.i)b +1(f.i)d
#> +7(f.j)j +7(g.g)b +10(g.j)c +1(h.j)j +5(i.d)i +8(j.d)g +2(j.g)i +2(j.h)a
#> +5(j.h)j +9(j.i)g