rspray | R Documentation |
Creates random spray objects as quick-and-dirty examples of multivariate polynomials
rspray(n=9 , vals = seq_len(n), arity = 3, powers = 0:2)
rsprayy(n=30, vals = seq_len(n), arity = 7, powers = 0:8)
n |
Number of distinct rows (maximum); repeated rows are merged
(argument |
vals |
Values to use for coefficients |
arity |
Arity of the spray; the number of columns in the index matrix |
powers |
Set from which to sample the entries of the index matrix |
Returns a spray object
If the index matrix contains repeated rows, the returned spray object
will contain fewer than n
entries
Robin K. S. Hankin
spray
rspray()
rspray(4)*rspray(3,rnorm(3))
rspray(3,arity=7,powers=-2:2)^3
rspray(1000,vals=rnorm(1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.