newForm(expression)
This function defines the particular differential form written in the given expression as elements of type DiffAlgForm. Notice that the exterior product must be written as the ordinary product of variables *. If any parameters are founded in the given expression, they are automatically included in the ring of scalar coefficients.
In the following example we define two particular differential forms, w and z, and compute the exterior product w^z, see DiffAlgForm ^ DiffAlgForm. In the definition of w we are introducing a scalar parameter named a. Notice that the variable x_2 is missing from the ring of w. But when computing w^z, the rings of both vector fields are automatically merged.
|
|
|
|
|
|
In this example we show that the variables will always start from the index 0 and go up to the highest index encountered in the expression defining the differential form.
|
|
The source of this document is in DiffAlg.m2:622:0.