f:= x^2 y^5 + y^3z^4;
grad[x_, y_, z_] = Grad[f, {x, y, z}];
mat = {{ 2,1,0},{ 2, 1, 1 },{ 0,3,3 },{ 2,3,1 },{ 1, 3,1},{ 4,4,4 } };
grad[##] & @@@ mat //TableForm
Is there a way to use Modulus 5 with grad in this Mathematica code?
f:= x^2 y^5 + y^3z^4;
grad[x_, y_, z_] = Grad[f, {x, y, z}];
mat = {{ 2,1,0},{ 2, 1, 1 },{ 0,3,3 },{ 2,3,1 },{ 1, 3,1},{ 4,4,4 } };
grad[##] & @@@ mat //TableForm
Is there a way to use Modulus 5 with grad in this Mathematica code?
Apply. – user202729 Dec 25 '17 at 00:36Mod[Apply[ grad , mat], 5]also works! – Ulrich Neumann Dec 26 '17 at 18:16