Hello, it could be, that plenty of people asked this question already. I didn't search the right way. Sorry!
My Problem is with very basic usage of Mathematica:
First I define my new Function:
myFunction[x_, y_] := x^2 - x^4
then I define the gradient of this function as a function:
myGradient[x_, y_] := Grad[myFunction[x, y], {x, y}]
When I want to StreamPlot[myGradient[x,y], {x, -2, 2}, {y, -2, 2}]
I got an empty diagram. When I use the output of the second last command (myGradient...) the Plotting works fine (StreamPlot[%6, {x, -2, 2}, {y, -2, 2}]
).
Why does it not work like this and how do I do it right? In general I want to use the output of some input as the value of a function.
Thanks!