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:
#> +3a +3c +4d +1c.c +5d.d +2(a.a)a +4(c.c)a +4(d.c)b
raaaa()
#> free antiassociative algebra element:
#> +9a +8b +3c +17d +25e +24f +24g +2h +6i +34j +4a.d +11a.g +10b.c +9c.f +8c.j
#> +6e.a +6e.h +1f.b +4f.h +2f.j +10g.c +6g.d +8g.f +9g.h +5h.c +11h.d +10i.b
#> +9i.e +10i.g +1i.h +6i.i +10j.b +4j.d +1j.e +6j.j +1(a.a)e +1(a.c)e +1(a.e)d
#> +7(a.h)f +1(b.a)h +9(c.d)b +4(c.g)a +3(c.j)i +8(d.b)e +4(e.a)h +4(e.b)c
#> +4(e.c)d +9(f.a)c +2(f.c)i +9(f.e)d +5(f.h)j +1(f.i)d +10(f.j)c +7(f.j)j
#> +7(g.g)b +3(g.i)b +10(g.j)c +9(h.i)g +7(h.j)e +7(i.b)j +5(i.d)i +4(i.g)i
#> +8(j.d)g +2(j.h)a +4(j.j)a