model(L,f,name)
To create your own model for random polynomials or other algebraic objects, use the model method as follows. Suppose you wish to construct a set of M random polynomials in 3 variables of degree 2. You may use Macaulay2's built-in random function:
|
To formalize the study of these random polynomials, embed this function into an object of type Model:
|
Now obtain the data about such random polynomials from the sample (that is, the actual sample in the statistical sense) as follows:
|
|
|
The object model is a method function.