I try to do the following but failed:
In[699]:= {{-1, 0, 0, -(1/4) + 2 x}, {-1, 1, 1, 1/4 + x - z}, {0, -1,
0, 1/4 + y + z}, {0, 0, 0, 1}} // SmithDecomposition
During evaluation of In[699]:= SmithDecomposition::latm: Matrix contains an entry that is not rational.
Out[699]= SmithDecomposition[{{-1, 0, 0, -(1/4) + 2 x}, {-1, 1, 1,
1/4 + x - z}, {0, -1, 0, 1/4 + y + z}, {0, 0, 0, 1}}]
How can I run SmithDecomposition command by limiting the above variables in rational field?
Regards,
Zhao