rspray
From spray v1.0-7
by Robin K S Hankin
Random spray objects
Creates random spray objects as quick-and-dirty examples of multivariate polynomials
- Keywords
- symbolmath
Usage
rspray(n, vals = 1, arity = 3, powers = 0:2)
Arguments
- n
Number of distinct rows (maximum); repeated rows are merged (argument
addrepeats
isTRUE
)- 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
Value
Returns a spray object
Note
If the index matrix contains repeated rows, the returned spray object
will contain fewer than n
entries
See Also
Examples
# NOT RUN {
rspray(10)
rspray(4)*rspray(3,rnorm(3))
rspray(3,arity=7,powers=-2:2)^3
rspray(1000,vals=rnorm(1000))
# }
Community examples
Looks like there are no examples yet.