I am trying to plot an arrow in the direction of the gradient. This is my code:
Graphics3D[{Red, Arrowheads[0.07],
Arrow[Tube[{{x0, y0,
F[x0, y0]}, {{x0, y0, F[x0, y0]} + gradF[x0, y0, F[x0, y0]]/
Norm[gradF[x0, y0, F[x0, y0]]]}, {{x0, y0, F[x0, y0]} +
gradF[x0, y0, F[x0, y0]]/Norm[gradF[x0, y0, F[x0, y0]]]}},
0.05]]}]
However, i am getting the error on the description. I am trying to solve it but i am not able to. This is gradF
gradF[x_, y_, z_] = Grad[F1[x, y, z], {x, y, z}]
and this is F1
F1[x_, y_, z_] := F[x, y] - z;
this is F
F[x_, y_] := -( x^2 + y^2);
I am trying to understand exactly why i am getting that error so i can solve it my self in the future. Let me know if you need more details of the code. Any help will be appreciated.
x0
andy0
need to be numbers, and you have two many {} around the second and third elements of theTube
. Look at the InputForm of your expression. $\endgroup$