Ask Your Question
1

Sagemanifolds display has deteriorated

asked 2020-08-12 20:13:41 +0200

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-08-12 22:26:52 +0200

eric_g gravatar image

updated 2020-08-12 23:44:10 +0200

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()

$$\omega = y \mathrm{d} x + z \mathrm{d} y + x \mathrm{d} z$$

edit flag offensive delete link more

Comments

I understand. Thanks Eric

danielvolinski gravatar imagedanielvolinski ( 2020-08-13 00:55:59 +0200 )edit

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: 2020-08-12 20:13:41 +0200

Seen: 435 times

Last updated: Aug 12 '20