Format of partial derivatives within sagemanifolds

71 views
Skip to first unread message

Oscar Alberto Castillo Felisola

unread,
Apr 1, 2016, 2:23:29 PM4/1/16
to sage-support
Dear community,

I'm using SAGE with SageManifolds to calculate Lie derivatives. First, I would like to congratulate all the team of developers, because day to day sagemanifolds get more useful. Next, the "problem".

I'm trying to find the most general rank two tensor compatible with O(3) symmetry. Here some code:

# The manifold
M
= Manifold(4, 'M')

# The patch
X.<t,r,th,ph> = M.chart(r't r:(0,+oo) th:(0,pi):\theta ph:(0,2*pi):\phi')

# Killing vectors
Lx = M.vector_field('Lx')
Lx[:] = ( 0, 0, -cos(ph), cot(th)*sin(ph) )
Ly = M.vector_field('Ly')
Ly[:] = ( 0, 0, sin(ph), cot(th)*cos(ph) )
Lz = M.vector_field('Lz')
Lz[:] = ( 0, 0, 0, 1)

# The general tensor
T = M.tensor_field( 0, 2, 'T' )
for i in xrange(4):
for j in xrange(4):
T[i,j] = function("T%s%s" % (i,j))(t, r, th, ph)

# One of the Lie derivatives
LxT = T.lie_der(Lx)
LxT.display_comp() 

Then, the "problem" is that the PDE displayed show partial derivatives with respect to `th` or `ph` instead of using the LaTeX symbols as defined on the patch.

Is there a way to correct this behaviour?

Cheers.

Eric Gourgoulhon

unread,
Apr 3, 2016, 4:44:54 AM4/3/16
to sage-support
Hi,

Le vendredi 1 avril 2016 20:23:29 UTC+2, Oscar Alberto Castillo Felisola a écrit :

Then, the "problem" is that the PDE displayed show partial derivatives with respect to `th` or `ph` instead of using the LaTeX symbols as defined on the patch.


Yes this is a current shortcoming of the display in SageManifolds (we are aware of it). It should be improved in a future version.

Best wishes,

Eric.

o.castill...@gmail.com

unread,
Apr 4, 2016, 9:42:08 AM4/4/16
to sage-s...@googlegroups.com
Thank you for your answer Eric, I suspected that was the issue! Of course, I want to thank again to all the development team for such a nice work.

--
You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/LOdI5lgGHPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.



--
_____________________________________
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
______________________________________ 
Reply all
Reply to author
Forward
0 new messages