f:= x^2 y^5 + y^3z^4;

Is there a way to use Modulus 5 with grad in this Mathematica code?
Mod[Apply[ grad  , mat, {1}], 5]

• @pat A list with length = 1 and its only element is 1. Depth specification for Apply. – user202729 Dec 25 '17 at 0:36
• @pat {1} is a level specifier. Mod works elementwise so Mod[Apply[ grad , mat], 5] also works! – Ulrich Neumann Dec 26 '17 at 18:16