1
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?

kglr
  • 394,356
  • 18
  • 477
  • 896
pat
  • 11
  • 2

1 Answers1

1
Mod[Apply[ grad  , mat, {1}], 5]
Ulrich Neumann
  • 53,729
  • 2
  • 23
  • 55