Display equations without coordinate system subscript

37 views
Skip to first unread message

Lucas Koerner

unread,
Aug 6, 2018, 9:05:14 AM8/6/18
to sympy

from sympy import *
from sympy.vector import CoordSys3D, divergence, curl

A
= CoordSys3D('A')  # initialize a 3D coordinate system
F
= A.x*A.y*A.z*(A.i + A.j + A.k)
display
(Math(r'\textbf{F} = ' + latex(F)))

Hello, 
With the code above the vector field is displayed with subscripts on all x,y,z, and unit vector variables to indicate the coordinate system: e.g. x_A 
 

Is there a way to suppress these underscores? 

Thank you,
Lucas

Jason Moore

unread,
Aug 6, 2018, 3:07:23 PM8/6/18
to sy...@googlegroups.com
Lucas,

You can create custom printers. See here for more info and an example custom printer: http://docs.sympy.org/latest/modules/printing.html

Jason

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/390e6f3a-14af-4e39-b1e2-71cb1542e0fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages