ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 01 Feb 2021 22:00:37 +0100latex_name and derivatives in sagemanifoldshttps://ask.sagemath.org/question/55540/latex_name-and-derivatives-in-sagemanifolds/Hi,
I think there is a small bug on displaying derivatives of tensors w.r.t a parameter with latex_name.
For symbolic expressions,
from sage.manifolds.utilities import ExpressionNice
var('t')
dq1 = function('dq_1', latex_name=r'\dot{q}_1')(t)
L = function('L')(dq1)
ExpressionNice(diff(L,t))
works nicely. However, when I define the same `L` as a scalar field (or any tensor),
M = manifolds.Minkowski()
L1 = M.scalar_field(L)
L1.derivative().display()
the latex_name is ignored and `dq_1` is used instead. The problem does not occur when there is no index in dq.cav_rtMon, 01 Feb 2021 22:00:37 +0100https://ask.sagemath.org/question/55540/