3 | | The extracting of variables from each element and then sorting by name looks scary, and can give unexpected results (if your vector is `(x1, x10, x2)`, I believe you would get 3 for the divergence instead of 1 as you might expect, due to the alphanumeric sort). Unless there's a better solution, I think we should have it so that the variables list has to always be given explicitly. |
| 3 | The extracting of variables from each element and then sorting by name looks scary, and can give unexpected results (if your vector is `(x1, x10, x2)`, I believe you would get 3 for the divergence instead of 1 as you might expect, since `'10'` comes before `'2'` in the alphanumeric sort). Unless there's a better solution, I think we should have it so that the variables list has to always be given explicitly. |