This finds the degree of each vector field. When given a Matrix, the function checks the degree of each column. When given a Module, the function checks the degree of each generator.
In a coordinate system $x_1,\ldots,x_n$ with $x_i$ having degree $k_i$, each $\partial_{x_i}$ has degree $-k_i$. Hence, a non-zero vector field $\sum_i f_i\partial_{x_i}$ has degree $d$ if and only if for each $i$, $f_i$ is either $0$ or weighted homogeneous of degree $d+k_i$. The zero vector field has degree $-\infty$.
|
|
|
|
We also handle non-standard degrees:
|
|
|
and multidegrees:
|
|
|
The object homogeneousVectorFieldDegree is a method function.