Ask Your Question

Revision history [back]

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').

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$$