Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
2

Using dz /\ dx convention in SageManifolds

asked 3 years ago

Donald_Munro gravatar image

Several books on Differential Forms in Electrodynamics use the convention that the dx,dz basis is defined as dzdx and not dxdz, for example the Faraday two-form expressed in this way

F=ExdtdxEydtdyEzdtdz+Bxdydz+Bydzdx+Bzdxdy

I can't seem to find anything in the SageManifolds documentation on defining either a manifold or a form to use this convention. Is it possible to directly use this convention in SageManifolds ?

Preview: (hide)

Comments

I suppose you already knows that dzdx=dxdz as far dx and dz are 1-forms. With this in mind the only difference is a change in a sign.

Masacroso gravatar imageMasacroso ( 3 years ago )

Yes I'm aware that they are alternating products, however:

1 Its less error prone if you don't have to remember to swap signs and

2 the exterior derivative seems to be incorrect in dtdzdx term

Eg the correct term is (ExzEzx+Byt)dtdzdx [1] but Sage gives

(BytExz+Ezx)dtdxdz= (ExzEzxByt)dtdzdx

See next comment for the code as I'm running out of chars

[1] A Visual Introduction to Differential Forms and Calculus on Manifolds, Fortney, J.P, Springer 20

Donald_Munro gravatar imageDonald_Munro ( 3 years ago )

Sorry, I could not the editor to do a markdown code display with4 tilde's. The code is at: link texthttps://gist.github.com/donaldmunro/6...

Donald_Munro gravatar imageDonald_Munro ( 3 years ago )
1

SageMath is correct in computing the exterior derivative, simply your initialization of F is not: the F[1,3] term should be F[1,3] = - B_y(u,v,w, T) instead of F[1,3] = B_y(u,v,w, T).

eric_g gravatar imageeric_g ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

eric_g gravatar image

At the moment, there is no option in Sage leading to the display you are asking for. It could be implemented of course, via an optional keyword of the method display of differential forms. This simply requires some work, including tests and documentation. Would you agree to implement this feature ? If yes, please take a look at the contribute page.

Preview: (hide)
link

Comments

Thanks, I'll have a look at the source.

Donald_Munro gravatar imageDonald_Munro ( 3 years ago )

Very good!

eric_g gravatar imageeric_g ( 3 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: 3 years ago

Seen: 280 times

Last updated: Nov 21 '21