1
$\begingroup$

I am trying to plot the following. Let $\Gamma^\top \Gamma=1$, and $e_3=\{0,0,1\}$ (unit vector along Z-axis). I am trying to plot $\dot \Gamma=e_3\times \Gamma$.

Tried the following: $\Gamma =\{\cos (\theta ) \cos (\phi ),\cos (\theta ) \sin (\phi ),\sin (\theta )\};$ and used $\text{VectorPlot}[\text{e3}\times \gamma ,\{\theta ,-\pi ,\pi \},\{\phi ,-\pi ,\pi \}]$ But VectorPlot says it need three argument.

$\endgroup$
1
  • $\begingroup$ Could you include the code you actually used as plain text instead of $\LaTeX$ (select, right-click, and then Copy As > Input Text). It's currently hard to tell what you actually did. $\endgroup$ Sep 19, 2017 at 10:08

1 Answer 1

1
$\begingroup$

Mathematica thinks (correctly) that your vector e3~Cross~\[CapitalGamma] is three-dimensional, and so doesn't know how to find a two-dimensional vector field to plot (which is what VectorPlot does).

If, as I assume, you want to plot the $x$- and $y$-components of your resultant field, you could do

\[CapitalGamma] = {Cos[\[Theta]] Cos[\[Phi]],Cos[\[Theta]] Sin[\[Phi]],Sin[\[Theta]]};
e3 = {0,0,1};
VectorPlot[(e3~Cross~\[CapitalGamma])[[1;;2]],{\[Theta],0,\[Pi]},{\[Phi],-\[Pi],\[Pi]}]

but you probably also want to convert $(\theta,\phi)$ to $(x,y)$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.