What does the {-y,x} in this equation mean?
.5 {-y,x}/(x^2+y^2)
You can use .5 {-y, x}/(x^2 + y^2) // TraditionalForm
to see that .5 {-y, x}/(x^2 + y^2)
can be use to express the vector value function.
$$\left(\frac{-0.5y}{x^2+y^2},\frac{0.5x}{x^2+y^2}\right)$$
and actually,{-y, x}/(x^2 + y^2)
is the gradient of the function ArcTan[y/x]
or ArcTan[x,y]
Grad[ArcTan[x, y], {x, y}]
Grad[ArcTan[y/x], {x, y}] // Simplify
(* {-(y/(x^2 + y^2)), x/(x^2 + y^2)} *)
GraphicsRow[{VectorPlot[{-(y/(x^2 + y^2)), x/(
x^2 + y^2)}, {x, y} ∈ Disk[]],
VectorPlot[
Grad[ArcTan[x, y], {x, y}] // Evaluate, {x, y} ∈ Disk[]]}]
{x,y}+5
to get a hint. Note that()
and{}
have utterly different meanings. $\endgroup${-y, x}
is a List. Many operations such as Times, Plus, Divide, etc. have the attributeListable
and exploiting this attribute can simplify code. Without this attribute, the expression would have to be written as0.5 #/(x^2+y^2)& /@ {-y, x}
orTable[0.5 t/(x^2+y^2), {t, {-y, x}}]
or some other equivalent. $\endgroup$Normalize[Cross[{x,y}]]/2
$\endgroup$