Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
1

Sagemanifolds display has deteriorated

asked 4 years ago

danielvolinski gravatar image

Hi All,

I've noticed a deterioration in the display of objects in SageManifolds, I'm using the following code:

%display latex

R3 = Manifold(3, 'R3', start_index=1, latex_name=r'\mathbb{R}^3')
cartesian3d.<x,y,z> = R3.chart()

omega = R3.diff_form(1, 'omega', latex_name=r'\omega')
omega[:] = (y, z, x)
print(omega)
omega.display()

In SageMath for Windows Native 8.1 the display command would display the Greek letter omega. On the other hand in SageMath for Windows Native 9.0 and 9.1 the display command displays the word omega, not the Greek letter.

Is this a bug?

Daniel

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

eric_g gravatar image

updated 4 years ago

Please use

omega = R3.diff_form(1, name='omega', latex_name=r'\omega')

to get a correct LaTeX display in Sage 9.1 (notice name='omega' instead of a mere 'omega').

Actually, the change that occured between Sage 8.1 and Sage >= 8.8, is that the unnamed arguments are now assumed to be some components to initialize the diff form. For instance, you can now declare and initialize omega in a single line:

omega = R3.diff_form(1, (y, z, x), name='omega', latex_name=r'\omega')
omega.display()

ω=ydx+zdy+xdz

Preview: (hide)
link

Comments

I understand. Thanks Eric

danielvolinski gravatar imagedanielvolinski ( 4 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 762 times

Last updated: Aug 12 '20