@@ -66,7 +66,7 @@ This kind of aux var has `M_.aux_vars(i).type = 6` and corresponds to the Lagran
## Type 7: Unused
## Type 8: `diff` operator (since Dynare 4.7)
## Type 8: `diff` operator (since Dynare 4.6)
This kind of aux var has `M_.aux_vars(i).type = 8` and substitutes for the `diff` operator. The name of such an auxiliary variable begins with `AUX_DIFF_`.
...
...
@@ -75,7 +75,7 @@ The substitution will only happen if there is no lead in the argument to the `di
-`M_.aux_vars(i).orig_index` contains the index of the variable contained in the `diff` operator. This field exists if the `diff` was taken of a variable, not of an expression.
-`M_.aux_vars(i).orig_lead_lag` contains the lag of the variable contained in the `diff` operator. This field exists if the `diff` was taken of a variable, not of an expression.
## Type 9: lag within `diff` operator (since Dynare 4.7)
## Type 9: lag within `diff` operator (since Dynare 4.6)
This kind of aux var has `M_.aux_vars(i).type = 9` and accounts for applying the difference operator to a lag. If a `diff` operator is applied to a variable with lagged values (e.g. `diff(x(-3)`), and if there is also a `diff` operator with the same arguments shifted in the future (e.g. `diff(x)`), then a diff auxiliary variable (of type 8) is created for the `diff` operator applied to the variable with lag equal to zero (e.g. `diff(x)`) and auxiliary variables (of type 9) are created for the following sequence `diff(x(-1)`, `diff(x(-2))`, and `diff(x(-3)`). The name of such auxiliary variables begins with `AUX_DIFF_LAG_`.