Ask Your Question

Revision history [back]

I cannot reproduce the issue with Sage 9.2. Typing the following code

%display latex
var('t')
dq1 = function('dq_1', latex_name=r'\dot{q}_1')(t)
L = function('L')(dq1)
M = manifolds.Minkowski()
L1 = M.scalar_field(L)
L1.derivative().display()

in a Jupyter notebook yields

$\frac{\partial\,L}{\partial \left( \dot{q}_1\left(t\right) \right)} \frac{\partial\dot{q}_1}{\partial t} \mathrm{d} t$