Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

As well as the usual spherical polar coordinates r,\theta,\phi, I also want to use their velocites as coordinates, which I'm currently representing as vr, vtheta, vphi. I'd prefer to display the latter as (latex) \dot r, \dot\theta, \dot\phi.

I vaguely recall cadabra1 had a way of doing this. Can I do it somehow in cadabra2?

in General questions by (450 points)

1 Answer

0 votes

Yes, use LaTeXForm, as in

vr::LaTeXForm("\dot{r}").
vtheta::LaTeXForm("\dot{\theta}").

ex:= vr + vtheta;

gives $\dot{r}+\dot{\theta}$.

by (82.5k points)

OK, thanks. That works for me. :-)

...