rform | R Documentation |
Random k
-form objects and k
-tensors,
intended as quick “get you going” examples
rform(terms=9, k=3, n=7, ensure=TRUE, integer=TRUE)
rformm(terms=30, k=7, n=20, ensure=TRUE, integer=TRUE)
rformmm(terms=90, k=15, n=30, ensure=TRUE, integer=TRUE)
rtensor(terms=9, k=3, n=7, integer=TRUE)
terms |
Number of distinct terms |
k , n |
A |
ensure |
Boolean with default |
integer |
Boolean specifying whether the coefficients are integers or not |
Random k
-form objects and k
-tensors.
By default, function rform()
returns a simple k
-form;
rformm()
and rformmm()
return successively more
complicated objects.
Note that argument terms
is an upper bound, as the index matrix
might contain repeats which are combined.
All functions documented here return an object of class kform
or
ktensor
.
Robin K. S. Hankin
(a <- rform())
(b <- rform())
a ^ b
a
a ^ dx
a ^ dx ^ dy
(x <- rtensor())
x %X% x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.