Grad
Grad[e, {var1, var2, ...}]
finds the gradient of e
with respect to the named variables.
Attributes[Grad] := {Protected, ReadProtected}
Simple examples
In[1]:= Grad[Cos[x + 2*y], {x, y}] Out[1]= {Sin[x + 2*y]*-1, -2*Sin[x + 2*y]}
Grad[e, {var1, var2, ...}]
finds the gradient of e
with respect to the named variables.
Attributes[Grad] := {Protected, ReadProtected}
In[1]:= Grad[Cos[x + 2*y], {x, y}] Out[1]= {Sin[x + 2*y]*-1, -2*Sin[x + 2*y]}