powered by
Creates random weyl objects: quick-and-dirty examples of Weyl algebra elements
rweyl(nterms = 3, vals = seq_len(nterms), dim = 3, powers = 0:2) rweyll(nterms = 15, vals = seq_len(nterms), dim = 4, powers = 0:5) rweylll(nterms = 50, vals = seq_len(nterms), dim = 8, powers = 0:7)
Returns a weyl object
Number of terms in output
Values of coefficients
Dimension of weyl object
Set from which to sample the entries of the index matrix
Robin K. S. Hankin
Function rweyl() creates a smallish random Weyl object; rweyll() and rweylll() create successively more complicated objects.
rweyl()
rweyll()
rweylll()
These functions use spray::rspray(), so the note there about repeated rows in the index matrix resulting in fewer than nterms terms applies.
spray::rspray()
nterms
Function rweyl1() returns a one-dimensional Weyl object.
rweyl1()
rweyl() rweyll() rweyl(d=7) options(polyform = TRUE) rweyl1() options(polyform = FALSE) # restore default
Run the code above in your browser using DataLab